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
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
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
Try this:
Router::connect(
'/search/:q',
array(
'controller' => 'skateparks',
'action' => 'index'
),
array(
'q' => '[\+a-zA-Z]+',
'pass' => array('q')
)
);
function index($q = null)
{
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,
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
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