title: Inheritance between controllers in Codeigniter
body: <p>Suppose that I have 2 controller files in 'applcation/controllers': base_controller.php and child_controller.php</p>
  
  <p>File: base_controller.php:</p>
  
  <pre><code>class Base_controller extends CI_Controller{
      parent::__construct();
  
  // some functions
  }
  </code></pre>
  
  <p>In child_controller.php, I write:</p>
  
  <pre><code>class Child_controller extends Base_controller {
      parent::__construct();
  
  // some functions
  }
  </code></pre>
  
  <p>It throw an error mean that 'Base_controller' not found. Please, help!</p>