CodeIgniter Forums

Full Version: *Solved* Odd construct not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]cpass78[/eluser]
For some reason adding a constructor to my controller causes the page to not be rendered but no error messages either. Taking it out it loads just fine, PHP Version 5.3.5-1ubuntu7.2 and core 2.0.2, Any ideas?
Code:
function __construct() {
        parent::__construct();
        $this->load->model('login_model');
    }

Thanks

El Forum

[eluser]cpass78[/eluser]
Doh, was calling my login_model class Login instead of Login_model... Confusedhut: