title: CodeIgniter controller always calling index function
body: <p>Whenever I try to add a new controller and access various public functions through URL, than only redirecting to index() function and not accessing function according to the URL request</p>
  
  <p>Example Code is</p>
  
  <pre><code>&lt;?php if (!defined('BASEPATH')) exit('No direct script access allowed');
  
  class courses extends CI_Controller
  {    
      public function __construct()    
      {    
          parent::__construct();
          $this-&gt;load-&gt;model('user_model');
          define('CurrPage', 'Courses');
      }    
      public function index()
      {
          echo "is in Index";    
      }    
      public function categoryInfo()
      {
          echo "is in cat";    
      }
  
      public function c()
      {
          echo "is in c";    
      }  
  }
  </code></pre>
  
  <p>test is the controller 
  when type URL "..../test/"
  <br>Output is</p>
  
  <blockquote>
    <p>is in Index</p>
  </blockquote>
  
  <p>when type URL "..../test/c/"
  <br>Output is</p>
  
  <blockquote>
    <p>is in Index</p>
  </blockquote>
  
  <p>when type URL "..../test/categoryInfo/"
  <br>Output is</p>
  
  <blockquote>
    <p>is in Index</p>
  </blockquote>
  
  <p>Code in config/routes.php</p>
  
  <pre><code>  $route['default_controller'] = "home";
    $route['404_override'] = 'courses';  
    $route['v/(:any)']= "video_single/index"; 
    $route['userInfo/(:any)']= "userInfo/index";
  </code></pre>