title: How to route the URI with parameters to a method in codeigniter?
body: <p>I don't know much about the routing concept in codeigniter, I want to pass many parameters to a single method as explained in this <a href="http://www.codeigniter.com/userguide2/general/controllers.html" rel="noreferrer">http://www.codeigniter.com/userguide2/general/controllers.html</a> tutorial page. </p>
  
  <p>In the url I have this </p>
  
  <p><code>http://localhost/code_igniter/products/display/2/3/4</code></p>
  
  <p>In my routes.php I have written </p>
  
  <p><code>$route['products/display/(:any)'] = 'Products_controller/display';</code></p>
  
  <p>What I thought is it will pass all the parameters (here 2/3/4) to the method 'display' automatically but I am getting 404 page not found error.</p>
  
  <p>In general I want to achieve something like, if the URI is <code>controller/method</code> I want to route to <code>someother_controller/its_method</code> and pass the parameters if any to that method. How can I do it?</p>