title: How to get a url parameter in Magento controller?
body: <p>Is there a Magento function to get the value of "id" from this url:</p>
  
  <p><a href="http://example.com/path/action/id/123">http://example.com/path/action/id/123</a></p>
  
  <p>I know I can split the url on "/" to get the value, but I'd prefer a single function. </p>
  
  <p>This doesn't work:</p>
  
  <pre><code>$id = $this-&gt;getRequest()-&gt;getParam('id');
  </code></pre>
  
  <p>It only works if I use <a href="http://example.com/path/action?id=123">http://example.com/path/action?id=123</a></p>