Re: Adding parameters to redirect
Jup!
Works a charm!
I also made it that I get the parameter I need from the data in the
same function (It was already available in my code and all) So it's
flexible now:
And for anybody reading... Don't forget the Exit-parameter in
redirect! :D
$this->redirect( '/products/index/'.$param, null, true);
On Oct 13, 3:08 pm, Amit Rawat <rawatami...@gmail.com> wrote:
> Try this
>
> $this->redirect( ' /products/index/21 ' );
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home