CodeIgniter Forums
unable to load models when extends controller HMVC - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: unable to load models when extends controller HMVC (/thread-32735.html)



unable to load models when extends controller HMVC - El Forum - 08-02-2010

[eluser]huuray[/eluser]
Code:
//User.php
class User extends MY_Controller {

    public function __construct()
    {
        parent::MY_Controller();
        $this->load->model('mdl_user');
        }
}


Code:
//MY_Controller.php
class MY_Controller extends Controller{

    function MY_Controller()
    {
        parent::Controller();
    }
}


Quote:An Error Was Encountered

Unable to locate the model you have specified: mdl_user
im using HMVC