Welcome Guest, Not a member yet? Register   Sign In
Make sure user is logged in then show pages EXCEPT for login page.
#5

[eluser]behnampmdg3[/eluser]
[quote author="Pert" date="1370173285"]You can create a user model and autoload it, then check login state in model __construct method. [/quote]Hi;

I want some code example and also need to know where should I save it? Also I think it should be controller not model.

Thanks


Messages In This Thread
Make sure user is logged in then show pages EXCEPT for login page. - by El Forum - 06-02-2013, 06:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB