[eluser]Kemik[/eluser]
[quote author="inparo" date="1201137407"]You got the instance, now you have to use it, too
Code:
$this->auth->logged_in()
//should be
$this->CI->auth->logged_in()
[/quote]
Thanks for the suggestion. I tried the change you said but then it gave the same error but on the $this->CI->auth->logged_in() line. I tried changing
Code:
if ($this->session->userdata('user_id')) {
// to:
if ($this->CI->session->userdata('user_id')) {
But the original error didn't change.