Welcome Guest, Not a member yet? Register   Sign In
Error Accessing Cookie Helper?
#1

[eluser]Vik[/eluser]
I must be making some very obvious error here.

Code:
$this->load->helper('cookie');
$S = $this->cookie->get_cookie('cookie_name');

No error is thrown by the load->helper line, but the next line throws the error:

Quote:Call to a member function get_cookie() on a non-object

What am I missing?

UPDATE: Oh - you just have to say get_cookie, not $this->cookie->get_cookie. Smile


Messages In This Thread
Error Accessing Cookie Helper? - by El Forum - 12-20-2009, 12:19 PM
Error Accessing Cookie Helper? - by El Forum - 12-20-2009, 02:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB