preExecute and postExecute?

#1
[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

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

#3
[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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.