Categories
symfony Uncategorized

symfony referer redirect

Quick way to redirect back to referer page in symfony 1.3/1.4:

    $this->redirect($request->getReferer());

Its pretty useful when you send load of parameters to some action (e.g. delete) and then need to return back to sender page (so instead of using generateUrl() method with all return parameters it makes sense to use getReferer() method).

3 replies on “symfony referer redirect”

i have small app based on symfony 1.4.Instead of redirecting to another page, I want to display doctrine query results on the same templates.

Leave a Reply

Your email address will not be published. Required fields are marked *