title: CakePHP customize Router URL order
body: <p>I'm using CakePHP to one of my project. When I was designing the URL, I know CakePHP does well when I use </p>
  
  <pre><code>$this-&gt;Html-&gt;Link('Add Post', array('controller'=&gt;'posts', 'action'=&gt;'edit', 1234))
  </code></pre>
  
  <p>CakePHP will generate URI <strong>/appname/posts/edit/1234</strong>. But what I'm thinking <strong>/appname/post/1234/edit</strong> is better than the former one. I couldn't find a solution to workaround with it. </p>
  
  <p>I've tried </p>
  
  <pre><code>$this-&gt;Html-&gt;Link('Add Post', array('controller'=&gt;'posts', 1234, 'action'=&gt;'edit'))
  </code></pre>
  
  <p>but CakePHP will ignore the order of array.</p>
  
  <p>Does anyone know how to achieve this URL? Basically I don't want to modify function Router::url, what I need is to write code in my ctp view file and CakePHP to know the right order I put. How can I do that?</p>
  
  <p>BTW, I'm using CakePHP 2.3.</p>