Welcome Guest, Not a member yet? Register   Sign In
Check if user exists on page load
#7

[eluser]mvdg27[/eluser]
[quote author="stuffradio" date="1261216063"][quote author="mvdg27" date="1261188886"]Another suggestion would be to have your check inside a library and autoload it, so it get's automatically checked upon each page request. I think that's the way I usually go about this. Hope that helps.[/quote]

That already happens automatically if you use MY_Controller.[/quote]

I wasn't arguing that using MY_Controller wouldn't work, I know it does. I just wanted to share a different way to achieve the same goal Smile ... I myself prefer the autoloaded library over using MY_Controller. Whichever is better or faster, I'll leave to the real CI experts.

Cheers, Michiel


Messages In This Thread
Check if user exists on page load - by El Forum - 12-18-2009, 12:54 PM
Check if user exists on page load - by El Forum - 12-18-2009, 12:55 PM
Check if user exists on page load - by El Forum - 12-18-2009, 12:59 PM
Check if user exists on page load - by El Forum - 12-18-2009, 02:14 PM
Check if user exists on page load - by El Forum - 12-18-2009, 09:47 PM
Check if user exists on page load - by El Forum - 12-19-2009, 01:48 AM
Check if user exists on page load - by El Forum - 12-19-2009, 05:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB