title: CodeIgniter - Turn off controller function call?
body: <p>I simply want to load the controller and not call a function based on the URI, so that I can then generate the page based on the following segments. <strong><em>How do I change the default behaviour to do this?</em></strong> eg.</p>
  
  <p>example.com/class/function/ID >>> example.com/class/ID/ID</p>
  
  <p>I thought all I needed to do was in config.php add:</p>
  
  <pre><code>$route['find/(:any)/(:any)'] = "find/$1/$2";
  </code></pre>
  
  <p>but this gives me a 404.</p>
  
  <hr>
  
  <p>example.com/find/item/location</p>
  
  <pre><code>class Find extends CI_Controller {
  
  private $s1;
  private $s2;
  
  function __construct()
  {
      parent::__construct();
  }
  
  function index()
  {
      $this-&gt;s1 = $this-&gt;uri-&gt;segment(2);
      $this-&gt;s2 = $this-&gt;uri-&gt;segment(3);
      $this-&gt;makePage();
  }
  
  function makePage()
  {
      echo 'Page about ' . $this-&gt;s1 . 'in ' . $this-&gt;s2;
      //Get Data ($s1 &amp; $s2)
      //Load View 
  }
  }
  </code></pre>