[symfony-users] Re: Forcing routing to be only characters and numbers

2009-05-09 Thread gimler
i describe a solution in my blog post: http://blog.nevalon.de/en/symfony-dynamische-urlssymfony-build-dynamic-urls-20090309 greetings Gimler On May 9, 7:03 pm, HiDDeN wrote: > I'd like to define a route as characters and numbers only. > > I mean something like this: > > /section-this-is-the-tit

[symfony-users] Re: Forcing routing to be only characters and numbers

2009-05-09 Thread David Ashwood
In the routing requirements you can specify a regular expression for the pattern: job_show_user: url: /job/:company/:location/:id/:position param: { module: job, action: show } requirements: id: \d+ From: http://www.symfony-project.org/jobeet/1_2/Doctrine/en/05#chapter_05_requirem en

[symfony-users] Re: Forcing routing to be only characters and numbers

2009-05-09 Thread HiDDeN
Oops, I don't know what I was thinking about, this is the solution: requirements: { slug: ([0-9a-z-]+) } On May 9, 7:03 pm, HiDDeN wrote: > I'd like to define a route as characters and numbers only. > > I mean something like this: > > /section-this-is-the-title-123.htm > > How would I do this?