title: Getting request parameters on Slim
body: <p>I'm trying to get request parameter names and values dynamically, but the array is always empty. This is the get route:</p>
  
  <pre><code>$app-&gt;get('/get/profile/:id_user', function ($id_user) use ($app) {
      print_r($app-&gt;request()-&gt;params());
  });
  </code></pre>
  
  <p>And this is how im calling it from the browser:</p>
  
  <pre><code>http://localhost/get/profile/9492
  </code></pre>
  
  <p>This should return an array with <code>id_user =&gt; 9492</code>but it comes empty.</p>
  
  <p>Any ideas why?</p>