title: How to route 2 parameters to a controller?
body: <p>This seems really basic but i can't get the hang of it.</p>
  
  <p>I'm trying to send more then one parameter to a method in the controller, like this :</p>
  
  <pre><code>http://localhost/ci/index.php/subjects/3/state
  </code></pre>
  
  <p>This is the routings i've tried :</p>
  
  <pre><code>$route['subjects/(:num)'] = 'subjects/view/$1';
  $route['subjects/(:num)/{:any}'] = 'subjects/view/$1/$2';
  </code></pre>
  
  <p>the method accepted 2 paremeters :</p>
  
  <pre><code>public function view($slug, $id = null){
  
  }
  </code></pre>
  
  <p>but i seem to get a 404. How can i get this to work? i need the view method to always accept 1 parameter and optional other parameters.</p>
  
  <p><strong>NOTE</strong> : I am including the url helper.</p>