title: avoid having 'index' in url when using a variable in cakephp
body: <p>When you want to have a link like</p>
  
  <p><code>http://www.domain.com/users/54/John</code></p>
  
  <p>In Cakephp you have to rewrite it to: </p>
  
  <p><code>http://www.domain.com/users/index/54/John</code></p>
  
  <p>If you don't do this cakephp complains that within the <code>users</code> controller there is no action called <code>54</code>. Is there no other way around this? Like to tell cakephp that when the second variable in the url is a number (so in this case 54), to refer it to the index function:</p>
  
  <p><code>public function index($userId = null)</code>.</p>
  
  <p>Another example is the url of this question. If it was cakephp, the url would look like:</p>
  
  <p><code>http://stackoverflow.com/questions/index/18547494/avoid-having..</code></p>
  
  <p>Is it in cakephp possible to do something like this?</p>
  
  <p><code>http://stackoverflow.com/questions/18547494/avoid-having..</code></p>
  
  <p>I hope this makes sense.</p>