Here is what I am trying to do. This is a 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 an auxiliary
function test_login($sessdata) { if($sessdata->userdata('is_logged_in')) { return true; } else { return false; } }
I entered is_logged_in as the session boolean variable. However, this does not work.
I can not find the error.
php codeigniter
user1978166
source share