[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