Welcome Guest, Not a member yet? Register   Sign In
Something wrong with Session library in CI 2.1.3
#2

[eluser]InsiteFX[/eluser]
Maybe you should use PHP5 Constructor's.

Code:
class Auth {

    private $CI;

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

Also if your going to use the session library you should autoload it.



Messages In This Thread
Something wrong with Session library in CI 2.1.3 - by El Forum - 12-26-2012, 09:29 AM
Something wrong with Session library in CI 2.1.3 - by El Forum - 12-26-2012, 12:31 PM
Something wrong with Session library in CI 2.1.3 - by El Forum - 12-26-2012, 03:56 PM
Something wrong with Session library in CI 2.1.3 - by El Forum - 12-26-2012, 09:48 PM
Something wrong with Session library in CI 2.1.3 - by El Forum - 12-26-2012, 10:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB