Welcome Guest, Not a member yet? Register   Sign In
autoload libraries loaded in wrong order when enforcing .htaccess login
#1

[eluser]ipsod[/eluser]
I've got an .htaccess login setup on my development directory, and whenever it prompts for login, I get this error once the page loads:

Code:
A PHP Error was encountered

Severity: Notice

Message: Undefined property: AdminHome::$ion_auth

Filename: core/Model.php

Line Number: 50


This is the code it's complaining about (note ion_auth is an autoloaded library):
Code:
class Admin_Controller extends MY_Controller {

    function __construct()
    {
        parent::__construct();

        if( !$this->ion_auth->is_admin() )
        {
            redirect( 'login' );
        }
    }
}

This is in 2.0, and didn't happen in 1.7. It doesn't happen when I'm not prompted for login by .htaccess (and thus isn't a big deal). Bug, or no?


Messages In This Thread
autoload libraries loaded in wrong order when enforcing .htaccess login - by El Forum - 01-30-2011, 10:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB