Hey all,
I hope you can help me. After a certain action (Adding something to
the database) I redirect to the index page. But I want to pass along a
parameter. However, the regular $this->redirect can only take a
controller and an action. Is there a way to redirect to a action in a
controller and also passing a parameter too?
Something like this, maybe?
$this->redirect(array('controller' => 'products', 'action' =>
'index', 'params' => '21'), null, true);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---