Here's what I'm trying to do. This is the function in the controller
public function get_started()
{
if(test_login($this->session->all_userdata())) {
$this->load->view('template');
} else {
$this->load->view('error');
}
}
This is the helper
function test_login($sessdata)
{
if($sessdata->userdata('is_logged_in')) {
return true;
} else {
return false;
}
}
I have entered is_logged_in
as a boolean session variable.
However, this doesn't work.
I can't find the error.