I want to set up my website so I can have urls like:

sample.com/search/
sample.com/search/q:search+terms/
sample.com/search/country:us/region:oh/
..etc..

I also want to be able to do reverse routing w/ my links. I have my
routes.php set up like:

Router::connect('/search/*', array('controller' => 'model', 'action'
=> 'index'));

and then I print a link like:

echo $html->url("search",array
("controller"=>"model","action"=>"index","q"=>"search terms go
here"));

but the link comes out as:

/model/index/q:search/

What am I doing wrong? I have tried to get an answer to this question
before but nobody can seem to tell me the correct way of doing this.
Any help you can give me is EXTREMELY appreciated!

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

Reply via email to