Posted By

phpleo on 03/24/10


Tagged

redirect symfony


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

skwi69


Redirect referer


 / Published in: PHP
 

  1. // in action
  2. $default = 'some_module/some_action';
  3. $referer = $request->getReferer();
  4. $this->redirect($referer ? $referer : $default);

Report this snippet  

You need to login to post a comment.