By Sake on 22/2/08
1 - Arrays as parameters
I have been advised on IRC by TommyO that's it's often better to pass an array in place of string $url in the redirect command.
Using that logic,
<pre>
$this->redirect('/my_controller/my_action/param1/param2/'); should be replaced with
</pre>
$this->redirect(array('controller'=>'my_controller','action'=>'action','param1','param2'));
Login to add a comment
By Sake on 22/2/08
1 - Arrays as parameters
I have been advised on IRC by TommyO that's it's often better to pass an array in place of string $url in the redirect command.
Using that logic,
<pre>
$this->redirect('/my_controller/my_action/param1/param2/'); should be replaced with
</pre>
<pre>
$this->redirect(array('controller'=>'my_controller','action'=>'action','param1','param2'));
</pre>