Hi there,

I'm in the process of making a new site and I've decided to include
the locale in the url of every page. Currently what I'm having to do
is pass into every controller a $_locale parameter and then pass that
same variable into every template so that I can render my menu that
depends on locale:
{% render "MySiteBaseBundle:Default:topNavigation" with { '_locale':
_locale } %}

Is there a nice way that I can make this variable available to all
templates perhaps by listening to some event? I would prefer not to
use the locale from the session because it's in the url and there will
be some pages that don't have a session on the site.

Any help appreciated,

Rob

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