If you need a variable in your layout, you may consider writing a
template helper for it. If it's a menu, MenuBundle provides an easy
way to create a helper for your menu (http://github.com/knplabs/
MenuBundle/blob/master/Resources/doc/02-Integrate-With-
Symfony.markdown)

On Oct 20, 5:11 pm, Lukas Kahwe Smith <[email protected]> wrote:
> On 20.10.2010, at 17:08, Thibault D wrote:
>
> > Yeah I know (and agree) Twig is the default for Bundles. It was not
> > the case when we wrote DoctrineUserBundle and ForumBundle, that's the
> > reason why templates are in PHP.
> > Any contribution to translate them to Twig is welcome :)
>
> ok great!
>
> now i wonder how do you inject custom variables into the templates? do you 
> wrap the DoctrineUserBundle controllers inside an application specific 
> controller?
>
> regards,
> Lukas Kahwe Smith
> [email protected]

-- 
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 developers" 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-devs?hl=en

Reply via email to