Friday, July 25, 2014

Re: redirect with post data

It's called Session
There are existing components or behaviors like http://bakery.cakephp.org/articles/binarycrafts/2010/01/20/persistentvalidation-keeping-your-validation-data-after-redirects-2
to overcome this in certain scenarios
An alternative is to make them query strings in a PRG request

But the best way would be to avoid redirects alltogether.
If that aint possible, try to store it in the Session and use it again on each step of your multi form process

mark


Am Freitag, 25. Juli 2014 10:59:50 UTC+2 schrieb kishore reddy:
Hi,
my requirement is to redirect the action with post data.
I have some "testcontroller" and "one.ctp","two.ctp" are two ctp files.
when i submit the one.ctp form it will submit the data in "testcontroller"
and redirect to "two.ctp" with that data.(here url should be change when
redirect to second view.).
plz provide the solution anybody/



--
View this message in context: http://cakephp.1045679.n5.nabble.com/redirect-with-post-data-tp5718991.html
Sent from the CakePHP mailing list archive at Nabble.com.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: