Welcome Guest, Not a member yet? Register   Sign In
master controller for common tasks?
#8

[eluser]Random dude[/eluser]
@CroNiX I looked here: http://ellislab.com/forums/viewthread/98811/#499068,

When using an autoloaded library - if login authorization fails, will simply using the code

Code:
redirect('auth/login', 'refresh');

successfully stop the invokation of the target controller? and therefore can you safely at that point consider the unauthorized user has been blocked?

Because this seems simpler and cleaner than having to extend all controller by another class, not to mention using the autoload code. What do you think?


Cheers to cryogenix for the redirect code.


Messages In This Thread
master controller for common tasks? - by El Forum - 04-11-2011, 11:57 PM
master controller for common tasks? - by El Forum - 04-12-2011, 12:18 AM
master controller for common tasks? - by El Forum - 04-12-2011, 01:44 AM
master controller for common tasks? - by El Forum - 04-12-2011, 02:17 AM
master controller for common tasks? - by El Forum - 04-12-2011, 06:08 AM
master controller for common tasks? - by El Forum - 04-12-2011, 12:06 PM
master controller for common tasks? - by El Forum - 04-12-2011, 08:05 PM
master controller for common tasks? - by El Forum - 04-14-2011, 03:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB