CodeIgniter Forums

Full Version: unable to load models when extends controller HMVC
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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