Let’s say for example I got a school class with n students. I am looking for a way I am able to not just edit or delete a related entry, but redirecting back to it’s origin page.
So if I am at view.ctp of school class XY (cake/classes/1) and want to edit/delete a listed student, I want to get back to this school class. But when I am on the index of the students (cake/students/), I want to be redirected to that page itself.
How can I achieve this?
A more “cake” way of doing this is:
found in the book here:
http://book.cakephp.org/1.3/en/The-Manual/Developing-with-CakePHP/Controllers.html