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.

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 McCumskey
http://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

Reply via email to