How to modify an URL in a view in CakePHP 2.x -
It sounds very simple but there is something I can not understand. I hope someone can help me out.
I have a URL, something like that. I like to add another query to the ultimate choice. I really want to add query2 = 2 to all the URLs on a particular page via some callback or some things.
A URL can not contain the query parameter or the URL in the current page.
How do I do this?
Example URL:
You can use:
< Pre> $ this-> Redirect (Array ("Controller" = & gt; "myController", "action" = & gt; "myAction", "param1" => "Val1", "param2" => "val2", $ data_can_be_passed_here ), $ Position, $ exits); Hope this helps you.
Comments
Post a Comment