Thanks for the info. I hope the developers will have a look at this thread... this feature does REALLY need to be implemented.
-- Alessandro Desantis On 1 Giu, 09:05, ivarne <[email protected]> wrote: > The prefix approach does not work because the routing compiller tries to > optimize the prefix if more than one route is included. This means the > imported routes are surounded by a if(0===strpos('{_locale}')), whitch wont > match and you'll get a 404. If there is only one route in the included file, > it kind of works but the requirements will not be used, so your locale can > be set to anyting not containing a "/". > > I think the routing system should be modified so that it would support > adding a global {_locale} parameter. I would hate to use ctrl-c clrl-v in 5 > different files in five different bundles if I am to add a language to the > site, and your syntax is a clean way to specify it globally. -- 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
