Welcome Guest, Not a member yet? Register   Sign In
Bypassing uri-specified controller method?

New to CI, just a quick question...
I handle user authentication in the constructor of the controller. If authentication fails, it should display the login form and not run the requested method. Without using _remap(), how can i prevent the requested method from being called automatically (from within the constructor).

Hopefully I was clear enough. Thanks

Just realized I misunderstood how _remap() works and it will work fine for my application. I'm gonna have _remap() handle the user authentication instead of the constructor.

Theme © iAndrew 2016 - Forum software by © MyBB