Hi guys. I'm trying to prefix all my routes with /{_locale}. So, I've moved
them in routing_actual.yml and I've written the following in my *routing.yml
*:
_main:
resource: routing_actual.yml
prefix: /{_locale}
requirements:
_locale: en|it
defaults:
_locale: en
However, when I try to handle errors overriding *TwigBundle* (visiting, for
example, */en/foo*) I get a blank page and the following message is
contained in prod.log:
Exception thrown when handling an exception (Twig_Error_Runtime: An exception
has been thrown during the rendering of a template ("The "subscription_new"
route has some missing mandatory parameters ("_locale").") in
"ShaukuComingSoonBundle::base.html.twig" at line 13.)
What might be causing the problem?
Thanks in advance.
--
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