CodeIgniter Forums
Hooks and Params? - 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: Hooks and Params? (/showthread.php?tid=10070)



Hooks and Params? - El Forum - 07-17-2008

[eluser]Unknown[/eluser]
Hello,

I've created a hook to basically wrap a header and footer view around the original view output. It works great but what I'm wanting to do is basically pass the hook a param to toggle whether or not to include the header and footer views. I'd like to so this when I call the $this->load->view('view') method.

Is this possible?


Hooks and Params? - El Forum - 07-17-2008

[eluser]Unknown[/eluser]
If passing a param to the hook isn't possible, is it possible to disable the 'display_override' hook at the controller/method level?