Hi all,

I was wondering if it is possible to specify a global {_locale} prefix
for all my routes, so that I don't have to specify the parameter in
every single route and can localize the whole project with much less
code. I tried moving my routing.yml's content to routing2.yml and then
writing the following in routing.yml:
------------------------------------------------------------------------
routing:
    resource: routing2.yml
    prefix: /{_locale}
    requirements:
        _locale: en|it
    defaults:
        _locale: en
------------------------------------------------------------------------
But for some reasons it doesn't work and I get a 404 error.

Any hints? If it's not possible the developers should seriously think
about implementing it. It would make our life much easier.

Thanks in advance.

--
Alessandro Desantis

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