Hi everyone, I'm currently in the process of learning Symfony 2, while implementing a project, and I came to a point in which I need to specify a route that can take multiple optional parameters, and in an arbitrary order. I was expecting to find something about it on the documentation about Routing, but unfortunately I didn't. What I am looking for is some way of creating a route like this:
/messages/find/*some_text*/order/date/direction/desc/new/1/attachments/1 in this route, there are several parameters: the searched text (the only mandatory parameter) order (should default to date) direction (should default to desc) new (should default to 0) attachments (should default to 0) Maybe I'm looking at this the wrong way, I am open to suggestions on alternatives to this approach. Still, is there any way for me to specify this route, while allowing any combination of parameters and their order? I also leave a few other examples of routes that should match the rule I am looking for: /messages/find/hello /messages/find/thanks/attachments/1/order/title /messages/find/nice/direction/desc Thanks in advance. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en