customers_620
This commit is contained in:
@@ -268,19 +268,18 @@ class HD_Model extends CI_Model {
|
||||
$offset = null;
|
||||
$limit = null;
|
||||
}
|
||||
|
||||
$result = $this->db->get($this->table_name, $limit, $offset)->result_array();
|
||||
|
||||
$this->db->from($this->table_name);
|
||||
$this->db->limit($limit, $offset);
|
||||
$query = $this->db->get();
|
||||
$result = $query ? $query->result_array() : [];
|
||||
if($obj && file_exists($class = APPPATH.'libraries/entity/'.ucfirst($obj).'.php'))
|
||||
{
|
||||
require_once $class;
|
||||
|
||||
if(class_exists($obj))
|
||||
{
|
||||
$result = $this->db->get($this->table_name, $limit, $offset)->custom_result_object($obj);
|
||||
}
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user