Dec 05
Digg
Stumbleupon
Technorati
Delicious

symfony referer redirect

Quick way to redirect back to referer page in symfony 1.3/1.4: $this->redirect($request->getReferer()); $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).

Author: symfonian