hey, i'm working on a travel site and would like to use routing to
change the url string into an array for easier processing in my action
function.

urls are formatted like this

/posts/search/country_id/region_id/location_id/tag_id1/tag_id2/tag_id3/etc

and might look like this

/posts/search/12/34/23/1/2/3/etc

my search action function is

function search($country, $region, $location, $tags)

i want $tags to be an array of all the tag_ids, otherwise, i have to
store the tag_ids in a parsable string format that can be passed as the
4th variable

i'd like to use routing to convert all the tags after location_id into
an array.

/posts/search/country_id/region_id/location_id/*

can i do this? please, let me know how.

thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to