Cake PHP redirect with parameters in url

Posted by megaboss98 on Stack Overflow See other posts from Stack Overflow or by megaboss98
Published on 2010-05-11T22:05:47Z Indexed on 2010/05/11 22:34 UTC
Read the original article Hit count: 242

Filed under:
|
|
|
|

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!

© Stack Overflow or respective owner

Related posts about cakephp

Related posts about php