$controller->afterFilter(); If you define a function called afterFilter in your app_controller (or any of your controllers) you can include whatever code you like in here and it will run after every action call of a controller.
http://manual.cakephp.org/chapter/controllers http://api.cakephp.org/class_controller.html#2413935136814586d9993b831639ee43 I second the motion to go through the manual. Althought it took me a while to read all of it (and some of the wiki) it was such a time saver down the line. there's also a cheat sheet about the place somewhere which is fantastic! once you understand some of the finer points of Cake (which i'm still discovering every day) things become quick and simple. cheers, freedom On 23/08/06, Simplerules <[EMAIL PROTECTED]> wrote: > > Is there a way for me to set a function to run at the end of every > page load? > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~----------~----~----~----~------~----~------~--~---
