Bypassing uri-specified controller method? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Bypassing uri-specified controller method? (/showthread.php?tid=11260) |
Bypassing uri-specified controller method? - El Forum - 09-01-2008 [eluser]Unknown[/eluser] 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 Bypassing uri-specified controller method? - El Forum - 09-01-2008 [eluser]Unknown[/eluser] 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. |