CodeIgniter Forums
Hook Exceptions - 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: Hook Exceptions (/showthread.php?tid=41053)



Hook Exceptions - El Forum - 04-26-2011

[eluser]ShoeLace1291[/eluser]
Does anyone know of any way that I could prevent a post-controller hook from loading on a certain controller method? I'm using a method that I want to use in an anchor popup but I don't want the post-controller hook to load in the window. Any ideas?


Hook Exceptions - El Forum - 04-27-2011

[eluser]toopay[/eluser]
At your post-controller hook's class function, give some flag (IF statement) to inspect the requested Controller (using $ SERVER["REQUEST URI"] or CI super object) before execute the rest.