Pass params into custom url route
<p>I created custom url route like this:</p>

<pre><code>Router::connect('/subjects.details', array(
    'plugin' =&gt; 'subjects',
    'controller' =&gt; 'subjects',
    'action' =&gt; 'details'
));
</code></pre>

<p>However that action/view needs a parameter.</p>

<p>So when I go to link like <code>localhost/foo/subjects.details/12</code> it gives me missing controller error.</p>

<blockquote>
  <p>Missing Controller</p>
  
  <p>Error: Subjects.detailsController could not be found.</p>
  
  <p>Error: Create the class Subjects.detailsController below in file:
  app/Controller/Subjects.detailsController.php</p>
</blockquote>

<p>How do I add id param for this url?</p>