Monday, April 9, 2012

Routes to catch complete querystring

Hi,

depening of used search criterias it can happen that I want to call this url:

'/search/cat:10/city:6/sleeps:4/price:3/'

But it can be also just
'/search/cat:10/city:6/price:3/'
or '/search/city:6/sleeps:4/price:3/'
or any other combination...
That means, I need to have a route what transfers all to controller=>objects and action=search and then pass the querystring to it.
Can someone help finding out how I can do it? Having in mind that I never really now what will be passed, the only thing I know is the /search/ part.

Thanks in advance!!

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: