I think this would do the trick : $this->redirect($this->referer());
source : http://book.cakephp.org/2.0/en/controllers.html

Le mercredi 10 avril 2013 11:19:20 UTC+2, Cyanide9 a écrit :
>
> Hi all,
>
> How can I always redirect back to the calling url/page even on validation 
> errors or an sucessfull edit/update being done?
> Say I'm on page 77 on index then edit an item and want to return back to 
> page 77 after the update.
>
> Hope it makes sense
> Arthur
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


  • Redirecting Cyanide9
    • Re: Redirecting Christian Cadéré

Reply via email to