I have the following problem in Cakephp:
I maded a CMS to edit the content of a website with CakePhp. Now when I change the content in my form and I click Save then he shows again the data from before the form was changed.
In the database everything saved well and if I refresh the page also he shows the right data.
I know I can render a new page or redirect to another page, but I liked to just show a message with setFlash and that’s it. Someone can help me out?
Thanks in advance
Aäron
Update : check the Justin T. solution below.
You can just redirect to the same page:
to set your flash message:
and
or
or
to redirect.