Reading Session |
$this->session->userdata('item') returns the item or NULL which is what I want. But the docs say this method exists for backward compatibility. The preferred way is to use:
$this->session->item It appears that this also returns NULL if the item does not exist. Before I tried it I assumed it would error out with an unknown property error because item is not a function. What's going on?
Simpler is always better
|
Welcome Guest, Not a member yet? Register Sign In |