Skip to content

Instantly share code, notes, and snippets.

@phpleo
Created May 17, 2010 19:45
Show Gist options
  • Select an option

  • Save phpleo/404149 to your computer and use it in GitHub Desktop.

Select an option

Save phpleo/404149 to your computer and use it in GitHub Desktop.
// form symfony 1.4
$array = array();
foreach ($request->getParameterHolder()->getAll() as $key => $value)
{
$array[$key] = $value;
}
var_dump($array);
// in action of symfony 1.x
$default = 'some_module/some_action';
$referer = $request->getReferer();
$this->redirect($referer ? $referer : $default);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment