Welcome Guest, Not a member yet? Register   Sign In
Use function in multiple controllers
#4

[eluser]jj135[/eluser]
Hi! I found the problem. You can not use $this in a helper. You have to use:

Code:
$CI =& get_instance();
$CI->session->userdata('logged_in')

This works!


Messages In This Thread
Use function in multiple controllers - by El Forum - 01-11-2010, 10:44 AM
Use function in multiple controllers - by El Forum - 01-11-2010, 10:49 AM
Use function in multiple controllers - by El Forum - 01-11-2010, 11:13 AM
Use function in multiple controllers - by El Forum - 01-11-2010, 11:29 AM
Use function in multiple controllers - by El Forum - 01-11-2010, 11:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB