Skip to content

Instantly share code, notes, and snippets.

@tiarebalbi
Created July 18, 2011 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tiarebalbi/1090119 to your computer and use it in GitHub Desktop.
Save tiarebalbi/1090119 to your computer and use it in GitHub Desktop.
Criando uma URL de Retorno no Zend
/**
* Retorna todos os parametros da URL.
* @return String URL
*/
private function _createParams()
{
$parametros = $this->_request->getParams();
$info = "";
foreach ($parametros as $item=>$valor){
if($item == "module" || $item == "controller" || $item == "action"){
$info .= "/{$valor}";
}else{
$info .= "/{$item}/{$valor}";
}
}
return $info;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment