Hi,
my solution would be:
something:
url: /:sf_culture/:class:/:category_slugs/:product_slug
param: { module: xyz, action: blah }
requirements: { category_slugs: .* }
Afterwards explode the category_slugs parameter with "/" and you have
all category slugs for this url. This works, as the routing pattern is
greedy.
- Frank
Am 12.05.2009 um 17:47 schrieb BenjaM1:
>
> Hy everybody,
>
> I need some help for routing problem.
>
> I want to write a route as
> http://my.website.com/en/racket/junior/competition/myracket.html
> so the url must looks like
>
> url: /:sf_culture/:class:/category_slug/:category_slug2/:product_slug
>
> but I can't anticipate the number of category that I can have for my
> racket, so i rewrite the url like that
> url: /:sf_culture/:class:/category_slug/:product_slug
> ...
> requirement:
> category_slug: \d*
>
> But it seems that it doesn't work. How can I do that ?
>
> Thank you.
>
> PS: I apologize if this question has already been asked and answered,
> I haven't really time to search farther
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---