unable to load model using hmvc in codigniter.
Here is my controller users.php (application/modules/users/controllers/users.php)
class Users extends MX_Controller {
public function index(){
$this->load->view('users_view');
}
public function test(){
$this->load->model('model/mdl', TRUE);
$data['result']=$this->mdl->listTable();
$this->load->view('pages/listTable', $data);
}
}
and the model mdl.php (application/modules/users/model/mdl.php)
class Mdl extends CI_Model{
function listTable(){
$this->db->select('*');
$this->db->from('users');
$query = $this->db->get();
if($query) return $query->result_array();
else return false;
}
}
all i am getting is
Unable to locate the model you have specified: mdl
my PHP version is 5.1.6 and CI: 2.1.4