CodeIgniter Forums
preExecute and postExecute? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: preExecute and postExecute? (/showthread.php?tid=5312)



preExecute and postExecute? - El Forum - 01-16-2008

[eluser]mdavis1982[/eluser]
Hi all...

I was wondering if it is possible to have functions such as symfony's preExecute() and postExecute() methods? Basically, they allow you to have those two functions in your controller, and they get executed before and after whichever method in the controller is called.

Is it possible?

Thanks...

Matt


preExecute and postExecute? - El Forum - 01-16-2008

[eluser]Seppo[/eluser]
You can set up hooks for that purpose.


preExecute and postExecute? - El Forum - 01-16-2008

[eluser]mdavis1982[/eluser]
Thanks for that...

I had just worked it out myself, but I'd never used them before and I don't thnk I'd ever read that section of the user guide!

Thanks again, Seppo!

Matt