Undefined index: member_id !! |
Hi;
Why do I get Code: A PHP Error was encountered This is line 53 PHP Code: echo $c_items = $this->model_auth->count_shopping_cart_items($this->session->userdata['logged_data']['member_id']); I thought it's because the session doesn't exist, so in controller I added this. Didn't make any difference! PHP Code: $session_data = $this->session->userdata('logged_data'); Cheers
Try first catching the session item and after that to use the key..
PHP Code: $data = $this->session->userdata('logged_data'); Notice: $this->session->userdata - this is method .. you can't just use it as array $this->session->userdata['logged_data']['member_id'] Best VPS Hosting : Digital Ocean
|
Welcome Guest, Not a member yet? Register Sign In |