Welcome Guest, Not a member yet? Register   Sign In
Isn't there "Filters" in CI?
#4

[eluser]Pascal Kriete[/eluser]
Most authentication libraries have a procedure similar to this when checking if a user is logged in:
Code:
$this->load->library('auth');
$this->auth->checkLogin();

Now if you want to protect specific methods, you put the first line in your constructor and the second line at the beginning of every protected method. It depends on what auth lib you're using though.


Messages In This Thread
Isn't there "Filters" in CI? - by El Forum - 02-10-2008, 01:37 PM
Isn't there "Filters" in CI? - by El Forum - 02-10-2008, 01:52 PM
Isn't there "Filters" in CI? - by El Forum - 02-10-2008, 01:55 PM
Isn't there "Filters" in CI? - by El Forum - 02-10-2008, 05:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB