• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.