Le 09/05/2011 19:17, Scott Walkinshaw a écrit :
Going through the routing documentation, it says that you can set a
default parameter which also makes it optional.
From the docs:
homepage:
pattern: /{culture}
defaults: { _controller: AcmeDemoBundle:Main:homepage, culture:
en }
requirements:
culture: en|fr
/ {culture} = en
/en {culture} = en
/fr {culture} = fr
/es won't match this route
Source: http://symfony.com/doc/current/book/routing.html
Using this example, I'm getting an error for GET "/" (no route
found). /en and /fr work correctly, but / does not.
Is there anything more to this example such as modifications to the
controller or is this just a bug?
This is a bug for the homepage (default parameters for other urls than /
work well). It has been fixed in the master branch.
--
Christophe | Stof
--
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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en