CodeIgniter Forums

Full Version: preExecute and postExecute?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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

El Forum

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

El Forum

[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