Not sure I understand what you want then?  It seems perfectly logical
that after editing record A to redirect to record A's view.  In what
situation would you be viewing record A and be able to directly go to
edit record B then be taken back to viewing record A.

$this->redirect($this->referer()) takes you back to the previous page
which when submitting a form is the form you just submitted, if you
want to go to the page before that you will have to pass the value of
$this->referer() with the form data in a hidden field.

HTH

Paul.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

Reply via email to