Welcome Guest, Not a member yet? Register   Sign In
*Solved* Odd construct not working
#1

[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
#2

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




Theme © iAndrew 2016 - Forum software by © MyBB