<?php
class Employee_model extends CI_Model {
function Employee_model()
{
parent::__construct();
}
function employee_getall()
{
$this->load->database();
$query = $this->db->get('employee');
return $query->result();
}
function employee_get()
{
$this->load->database();
$query = $this->db->get_where('employee', array('id' => 1));
return $query->row_array();
}
} ?>
Оглядываясь на [CodeIgniter Gitlog] [1], похоже, что он был удален 6 августа 2010 года, поэтому у всех выпусков после этого его нет. Согласно документам , getwhere()
был изменен на get_where()
.