title: How to retrieve an url parameter in the Zend Framework?
body: <p>I'am trying to retrieve an parameter passed in a url using the zend framework. But of course, it is not working !
  My code looks like this :</p>
  
  <p>Generating the url :</p>
  
  <pre><code>&lt;?php echo $this-&gt;url(array('controller' =&gt; 'poll', 'action' =&gt; 'showresults', 'poll_id' =&gt; $poll['_id']), null, true) ?&gt;
  </code></pre>
  
  <p>Retrieving the "poll_id" parameter in showresultsAction() :</p>
  
  <pre><code> $request = new Zend_Controller_Request_Http();
   $poll_id = $request-&gt;getParam('poll_id');
  </code></pre>
  
  <p>The problem is that $poll_id is NULL. When I do a var_dump of $request->getParams(), it is also NULL. I have glanced trough the Zend Framework doc, but it was not very usefull. Any idea ? Thanks !</p>