How to reencode url parameters with Zend Framework

iluvmydog

New Member
I use the following code with my Zend Framework application:controller:\[code\]$paramsOtherAction = $this->getRequest()->getParams();$paramsOtherAction['action'] = 'otheraction'$this->view->paramsOtherAction = $paramsOtherAction;\[/code\]view:\[code\]<a href="http://stackoverflow.com/questions/2085372/<?php echo $this->url($this->paramsOtherAction)?>"> Do other action with same params </a>\[/code\]This works fine, except when there are any characters in the parameters that need to be escaped (encoded), like url's. How can I in the best way encode this array of parameters? Edit:What I am searching actually is the possibility to pass the a parameter to the url function that makes sure that my url-parameters are encoded (why isn't that done standard anyway?).
 
Back
Top