Welcome Guest, Not a member yet? Register   Sign In
Problem with access
#7

[eluser]pickupman[/eluser]
You have different versions of your Auth.php constructor. You have both function Auth() and __construct(). I would move all the code into one spot or another.
Code:
class Auth{
  
   var $CI; //declare property

   function Auth()
    {
        $this->CI =& get_instance();
        $this->CI->load->library('session');
        $this->CI->load->database();
        $this->CI->load->helper('url');
    }
}


// or //
class Auth{
  
   var $CI; //declare property

   function __construct()
    {
        $this->CI =& get_instance();
        $this->CI->load->library('session');
        $this->CI->load->database();
        $this->CI->load->helper('url');
    }
}

Also, what about autoloading the session class, and having it on for everything?


Messages In This Thread
Problem with access - by El Forum - 06-09-2010, 09:04 PM
Problem with access - by El Forum - 06-09-2010, 09:04 PM
Problem with access - by El Forum - 06-09-2010, 09:24 PM
Problem with access - by El Forum - 06-09-2010, 09:32 PM
Problem with access - by El Forum - 06-09-2010, 10:04 PM
Problem with access - by El Forum - 06-09-2010, 10:23 PM
Problem with access - by El Forum - 06-10-2010, 07:23 AM
Problem with access - by El Forum - 06-10-2010, 04:14 PM
Problem with access - by El Forum - 06-10-2010, 04:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB