I have a certain class which receives request from different views. It handles the request and should redirect the user to the view that they were “visiting”. Is there any way I can identify this view so i can load it back to the browser?
Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Why not just redirect back the referring page? Here are some functions I usually put in a MY_url_helper.php file to accomplish this:
Couple ways to use these functions:
redirect_back()in the controller action that processes, say, form datasave_next()in the controller action that displays the view, then callredirect_next()in the controller action that processes the form dataIt’s not all too RESTlike, but it gets the job done, freeing you to focus on the more important things in life…