BeSimple/BeSimpleI18nRoutingBundle — Issue #11: Route parameters
Author: zapik
Created: 2011-10-18 12:29:11+00:00
State: open

Examples from doc does not work for me (SF2.0.4)

homepage:
locales: { en: /welcome/{name}, fr: /bienvenue/{name}, de: /willkommen/{name} }
defaults: { _controller: MyWebsiteBundle:Frontend:index }

I have to add quotes when using parameter because routing system strip right bracket:

php app/console router:debug

demo.en ANY /welcome/{name

This works for me:
homepage:
locales: { en: '/welcome/{name}', fr: '/bienvenue/{name}', de: '/willkommen/{name}' }
defaults: { _controller: MyWebsiteBundle:Frontend:index }