Created
July 18, 2011 17:33
-
-
Save tiarebalbi/1090119 to your computer and use it in GitHub Desktop.
Criando uma URL de Retorno no Zend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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