Re: [symfony-devs] Re: Routing and optional args

2010-10-19 Thread Fabien Potencier
On 10/18/10 2:27 AM, Jordi Boggiano wrote: So.. some news on this issue that never got much attention: I now have this route set up for example: viewEvent: pattern: /:event/:title defaults: { _controller: eventController:viewEventAction } requirements: { event: \d+, title: '[a-z

[symfony-devs] Re: Routing and optional args

2010-10-17 Thread Jordi Boggiano
On Mon, Oct 18, 2010 at 2:27 AM, Jordi Boggiano wrote: > slash, is there any way to make it optional too? I could add it to the > title pattern for sure since I don't use the title anyway, but that's > a bit hackish and ugly. Actually, seems I can't. I tried the following: pattern: /:event:

[symfony-devs] Re: Routing and optional args

2010-10-17 Thread Jordi Boggiano
So.. some news on this issue that never got much attention: I now have this route set up for example: viewEvent: pattern: /:event/:title defaults: { _controller: eventController:viewEventAction } requirements: { event: \d+, title: '[a-z0-9-]*' } Setting the requirement for title wit