I think you can drop the wildcard and it will work.
Router::connect('/search', array('controller' => 'skateparks',
'action' => 'index'));

/Martin


On Sep 16, 4:38 am, Kyle Decot <kdec...@gmail.com> wrote:
> I am having a little bit of trouble w/ my reverse routing. In my
> routes.php file I have:
>
> Router::connect('/search/*', array('controller' => 'skateparks',
> 'action' => 'index'));
>
> Then in my view I do something like:
>
> $html->link("Search for Something",array
> ("controller"=>"skateparks","action"=>"index","q"=>"search+terms"));
>
> I want to get something like:
>
> http://localhost/search/q:search+terms/
>
> but instead I get:
>
> http://localhost/skateparks/index/q:search+terms/
>
> What is it that I am doing wrong?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to