Cake PHP 2 redirect with parameters in costum url

Hi,
Please i want to get this url:
www.example.com/result/val1
instead of:
www.example.com/result/param1:val1
with redirect function ( CakePHP 2 )
$this->redirect(array(
‘controller’ => ‘search’, ‘action’ => ‘result’, ‘param1’ => val1
));

Hi
Please write this
$this->redirect(array(
‘controller’ => ‘search’, ‘action’ => ‘result’, val1
));
instead of this
$this->redirect(array(
‘controller’ => ‘search’, ‘action’ => ‘result’, ‘param1’ => val1
));

1 Like