Cake PHP redirect with parameters in url
- by megaboss98
I have a page that I want to redirect to that requires parameters in the URL:
http://www.mysite.com/myController/myAction/param1:val1/param2:val2
I know that there is a Cake PHP redirect function for redirecting that works as follows:
$this->redirect(array("controller" => "myController",
"action" => "myAction",
$data_can_be_passed_here),
$status,
$exit);
How do I add the parameters that I want as part of the url using the above function? I would think that there might be another element that I could add to array so that I can pass along "param1:val1" and "param2:val2". Any help would be greatly appreciated!