Hi, If you are under symfony 1.x and not symfony2, then you need to check about filters and the filter chain. You will be able in a config file to declare your filter class anywhere inside the filter chain (including just before the controller is called). Allowing you to execute whatever code you want before any controller ever.
On Tue, Mar 1, 2011 at 4:44 PM, elitalon <elita...@inventiaplus.com> wrote: > Hi, > > I am developing an application that has to record a log in the > background for each action the user executes. I know Symfony comes > with a preExecute callback, but I would have to define in in every > controller. Is it possible to define it in some higher level in order > to write the code once? > > I know that you can override AppController in CakePHP, but I'm not > sure if Symfony has a similar or even better mechanism. > > Thanks! > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en