be placed Under “application/models/” <?php class Mymodel extend CI_Model{ function __construct() { parent::__construct(); } function get_info() { $query = $this->db->get(‘name’, 10); return $query->result(); } } ?> Loading a Model inside a Controller $this->load->model(‘mymodel’); $data = $this->mymodel->get_info(); Thursday, December 15, 11