title: Symfony2 retrieve the parameter values from URL
body: <p>when i try to get the parameter from url its returning nothing</p>
  
  <p>Here is my url : <code>http://localhost/myapp/web/dailydata/payment/amount/1000</code></p>
  
  <p><strong>Here is my symfony script :</strong></p>
  
  <pre><code>use Symfony\Component\HttpFoundation\Request;
  .
  .
  public function MyAction()
  {
      $request = $this-&gt;getRequest();
      $amount = $request-&gt;request-&gt;get('amount');
      echo 'Amount ='.$amount;
      exit;
  }
  </code></pre>