title: How to reencode url parameters with Zend Framework
body: <p>I use the following code with my Zend Framework application:</p>
  
  <p>controller:</p>
  
  <pre><code>$paramsOtherAction = $this-&gt;getRequest()-&gt;getParams();
  $paramsOtherAction['action'] = 'otheraction'
  $this-&gt;view-&gt;paramsOtherAction = $paramsOtherAction;
  </code></pre>
  
  <p>view:</p>
  
  <pre><code>&lt;a href="&lt;?php echo $this-&gt;url($this-&gt;paramsOtherAction)?&gt;"&gt; Do other action with same params &lt;/a&gt;
  </code></pre>
  
  <p>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? </p>
  
  <p><em>Edit:</em></p>
  
  <p>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?).</p>