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
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
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?