Re: Question about Reverse Routing

2009-10-08 Thread Kyle Decot
Anyone know how to do this? I've yet to figure it out...I'm really stumped On Sep 17, 1:29 pm, Kyle Decot wrote: > Anyone have any other suggestions? I could hardcode the urls, but I > would rather use reverse routing if possible. Thanks. > > On Sep 16, 9:57 pm, Kyle Decot wrote: > > > > > Than

Re: Question about Reverse Routing

2009-09-17 Thread Kyle Decot
Anyone have any other suggestions? I could hardcode the urls, but I would rather use reverse routing if possible. Thanks. On Sep 16, 9:57 pm, Kyle Decot wrote: > Thanks for the reply but I'm not always going to have just the q > parameter. For instance, sometimes I have something like: > > /sear

Re: Question about Reverse Routing

2009-09-16 Thread Kyle Decot
Thanks for the reply but I'm not always going to have just the q parameter. For instance, sometimes I have something like: /search/q:search+terms/country:us/region:oh/ /search/country:us/region:oh/city:columbus/ /search/country:us/page:2/ I don't really want to use pass to send it to the control

Re: Question about Reverse Routing

2009-09-16 Thread brian
Try this: Router::connect( '/search/:q', array( 'controller' => 'skateparks', 'action' => 'index' ), array( 'q' => '[\+a-zA-Z]+', 'pass' => array('q') ) ); function index($q = null) {

Re: Question about Reverse Routing

2009-09-16 Thread Kyle Decot
Thanks for the reply but I'm still getting the same results. Any other suggestions? On Sep 16, 7:15 am, Martin Westin wrote: > I think you can drop the wildcard and it will work. > Router::connect('/search', array('controller' => 'skateparks', > 'action' => 'index')); > > /Martin > > On Sep 16,

Re: Question about Reverse Routing

2009-09-16 Thread Martin Westin
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 wrote: > I am having a little bit of trouble w/ my reverse routing. In my > routes.php file I have: > > Router::conne

Question about Reverse Routing

2009-09-15 Thread Kyle Decot
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"=>"i