Nicolas CHARLOT wrote:
> Another routing issue :
> 
> How to write a rule like :
> /page-:id.html
> 
> And not simply :
> /:id.html

I would do it this way:

your_route:
  url:   /:id
  param: { module: mymodule, action: myaction }
  requirements: { id: page\-.* }


Not sure/tested if the regular expression works, just try it.. ;-)

Regards,
Matthias



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to