Welcome Guest, Not a member yet? Register   Sign In
Trying To Redirect Non-Authenticated Users Via Constructor, Problems.
#4

[eluser]wingdspur[/eluser]
The problem is trying to load a view from the constructor. You want to redirect them either to the base_url or to another controller function where you can pass some flashdata telling them they don't have permission.

Code:
redirect('controller/function');

Like the previous poster was saying, if you redirect after the permission check, no code after that redirect will be executed, so this is what you would need to do.


Messages In This Thread
Trying To Redirect Non-Authenticated Users Via Constructor, Problems. - by El Forum - 11-06-2010, 07:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB