title: Zend Retrieve Url parameter
body: <p>This is my first approach to Zend.Having this index action:</p>
  
  <pre><code>class IndexController extends Zend_Controller_Action
  {
   public function indexAction()
   {
      $this-&gt;view-&gt;variable="I'm testing my controller";
      if($this-&gt;_request-&gt;isGet())
      {
          $name=$this-&gt;_request-&gt;getQuery('mykey');
          $this-&gt;view-&gt;name=$name;
      }   
   }
  }
  </code></pre>
  
  <p>and this view index.phtml:</p>
  
  <pre><code>echo $this-&gt;variable;
  if (isset($this-&gt;name))
  {echo $this-&gt;name;}
  </code></pre>
  
  <p>If I type this URL : </p>
  
  <p><a href="http://localhost/index/index/mykey/2" rel="nofollow">http://localhost/index/index/mykey/2</a></p>
  
  <p>Shouldn't I see the "2" output in my index view??
  I just see "I'm testing my controller";</p>
  
  <p>P.s. need explaination more than a solution =)</p>
  
  <p>thanks</p>
  
  <p>Luca</p>