I think i am messing up with the library :/ i cant understand how to call the function from the controller, for example here is how i am loading the view:
Code:
$this->load->view('template/header', [
'title' => 'Welcome',
'auth' => $this->is_logged_in()
]);
which is not working, shows error, again i tried like this because we autoload the library:
Code:
$this->load->view('template/header', [
'title' => 'Welcome',
'auth' => $this->Authentication->is_logged_in()
]);
but all are showing "Call to undefined method ..."
please help