title: Codeigniter - extending controller does not work
body: <p>I am trying to extend a controller with my own class which extends the default CI_Controller class. Except it doesn't work.</p>
  
  <p>It says it can't find my sub-class. My subclass is located in application/core and is named My_Control_Panel.</p>
  
  <p>My class that extends on my sub-class:</p>
  
  <pre><code>if (!defined('BASEPATH')) exit('No direct script access allowed');
  
  class Developers extends My_Control_Panel
  {
      public function __construct()
      {
          parent::__construct();
          $this-&gt;load-&gt;helper('form');
          $this-&gt;load-&gt;helper('url');
          $this-&gt;load-&gt;database();
  
          $this-&gt;checkIfLoggedIn();
          $this-&gt;checkIfAllowedToViewPage();
  }
  </code></pre>
  
  <p>My sub-class:</p>
  
  <pre><code>if (!defined('BASEPATH')) exit('No direct script access allowed');
  
  class My_Control_Panel extends CI_Controller
  {
      public function __construct()
      {
          parent::__construct();
      }
  }
  </code></pre>
  
  <p>It keeps saying it can't find my sub-class, while it should work.</p>