On 1 sep, 12:55, Gareth McCumskey <[email protected]> wrote: > Fill the slot using an action? No need to use preExecute(). preExecute is > usually only called when every action in your module has some pre-processing > that needs doing.
Thanks for your answer. But, I need to fill the slot for every actions, that why I've put it in the action::preExecute() method, to be shared between all actions. In fact, that's nice except when forwarding to another that in case the shared code is executed as time as forward calls. Cyrille > > On Wed, Sep 1, 2010 at 10:10 AM, Cyrille37 <[email protected]> wrote: > > Hello, > > After read some posts, I'd learned the rule that one action for one > > template. > > So I now need some architect's ideas to solve a case. > > > To fill a slot used in the layout, I call a DB Query in the > > action::preExecute(). > > > But when there is an action::forward(), this preExecute() is called > > twice, and so the DB Query too. That's the problem : > > - Where may I put the DB Query ? > > - Where to fill the slot ? > > > thanks a lot for your lights ;-) > > Cyrille. > > > -- > > 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 [email protected] > > To unsubscribe from this group, send email to > > [email protected]<symfony-users%[email protected]> > > For more options, visit this group at > >http://groups.google.com/group/symfony-users?hl=en > > -- > Gareth McCumskeyhttp://garethmccumskey.blogspot.com > twitter: @garethmcc -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
