symfony Uncategorized

symfony referer redirect

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


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).