Welcome Guest, Not a member yet? Register   Sign In
redirect question
#1

[eluser]Unknown[/eluser]
Hello

My questions deals with code execution when calling redirect.

for example in a controller
Code:
function __construct()
{
    some code
    some more code
    redirect(valid args)
    code after redirect
}

does 'code after redirect' get executed?
does the controller action that was called get executed?

This is in relation to blocking access to certain controllers or actions based on whether or not a user is logged in, if they are not I want to prevent the actions from executing and redirect them to the login.

If this is not the proper way to accomplish this, can some one please guide me in the right direction.

Any help would be greatly appreciated.

Thanks
Sam


Messages In This Thread
redirect question - by El Forum - 07-08-2008, 04:15 PM
redirect question - by El Forum - 07-08-2008, 05:34 PM
redirect question - by El Forum - 07-09-2008, 02:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB