There isn't a built in feature for that in Routes.

But you can use wildcard (*) and then split the wildcard using '/'.

By doing this, the "wildcard params" are stored in array, so that you can
sort them however you like to fulfill your requirements.

- Didip -

On Mon, Jul 6, 2009 at 7:24 AM, afrotypa <[email protected]> wrote:

>
> how do you set up routes to match a url structure with query strings
> where the route variables can appear in any position in the query
> string?
>
> i.e. which route will match all 3 of these urls and cause the
> controller/action to be called with var1=1, var2=2, var3=3?
>
> /controller/action/?var1=1&var2=2&var3=3
> /controller/action/?var2=2&var1=1&var3=3
> /controller/action/?var3=3&var2=2&var1=1
> >
>

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

Reply via email to