Hello,

Is there a way to easily set a value in one template and make it
available in another (both templates are included by the same layout)?
For example, in a page template I want to set a string value
representing the selected menu item  and use this value in a mini-
template that contains the menu markup. In symfony 1.x,
slot('selectedMenuItem', 'home') would work just fine and the value
would be available in all partials. I don't think symfony2 blocks can
be used for the same purpose. There are also twig variables, but
they're local.

-- 
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

Reply via email to