Welcome Guest, Not a member yet? Register   Sign In
Filter system in 2.0?
#1

[eluser]froginvasion[/eluser]
The authentication needs in our application are quite simple, using another framework for this would be overkill, since we don't need to assign attributes to roles. We just need a very simple system that restricts access by roles.

I thought, well this could be easily implemented using a filter, heck: it would even save me from fiddling in the controller, which is a nasty thing to do really. So when googling I stumbled upon:
http://codeigniter.com/wiki/Filters_system/

Does anybody know if this is still actively used, and does work in Code Ignite 2.0? I've used the wiki and set all the configuration settings, files, etc, but I don't seem to be able to get it to work.

Code:
class Auth_Filter extends Filter {
function before(){
redirect('login/index');
}
}

Code:
$filter['auth'] = array('include', array('*'), array());


Messages In This Thread
Filter system in 2.0? - by El Forum - 03-21-2011, 01:55 PM
Filter system in 2.0? - by El Forum - 03-21-2011, 04:55 PM
Filter system in 2.0? - by El Forum - 03-21-2011, 05:01 PM
Filter system in 2.0? - by El Forum - 03-21-2011, 05:09 PM
Filter system in 2.0? - by El Forum - 03-22-2011, 02:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB