Daniel Ancuta
2011-08-01 20:14:44 UTC
Hi everyone,
I am "working" with Symfony2 from yesterday, and I have a simple
problem. How to get access to user culture (actual locale) in twig
template?
I found that is something like "app.user" but it return NULL if user
is not authenticated. Also is there a list (if possible) of variables
that I can execute from twig template that are similar to variables in
Symfony 1.4 template system e.g. $sf_user, $sf_request ?
--
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 "Symfony2" group.
To post to this group, send email to symfony2-/***@public.gmane.org
To unsubscribe from this group, send email to
symfony2+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/symfony2?hl=en
I am "working" with Symfony2 from yesterday, and I have a simple
problem. How to get access to user culture (actual locale) in twig
template?
I found that is something like "app.user" but it return NULL if user
is not authenticated. Also is there a list (if possible) of variables
that I can execute from twig template that are similar to variables in
Symfony 1.4 template system e.g. $sf_user, $sf_request ?
--
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 "Symfony2" group.
To post to this group, send email to symfony2-/***@public.gmane.org
To unsubscribe from this group, send email to
symfony2+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/symfony2?hl=en