title: CodeIgniter creating MY_Controller
body: <p>How can i create MY_Controller. Where is right place to put this file, i put it in core, folder, and i add into autoload file
  code</p>
  
  <pre><code>function __autoload($class)
  {
   if(strpos($class, 'CI_') !== 0)
   {
    @include_once( APPPATH . 'core/'. $class . EXT );
   }
  }
  </code></pre>
  
  <p>then i created MY_Controller</p>
  
  <pre><code>class My_Controller extends CI_Controller
  {
  
      public function __construct() {
  
          parent::__construct();
          $this-&gt;load-&gt;view('view_header');
          $this-&gt;load-&gt;view('includes/nav_home');
          $this-&gt;load-&gt;view('view_home');
          $this-&gt;load-&gt;view('view_footer');   
  
      }
  }
  </code></pre>
  
  <p>but i keep getting error</p>
  
  <p>Class 'MY_Controller' not found in C:\wamp\www\vezba\application\controllers\pages.php on line 4</p>
  
  <p>i called MY_Controller in file</p>
  
  <pre><code>class Pages extends MY_Controller 
  {    
     function __construct() {
      parent::__construct();
    }
  
  } 
  </code></pre>
  
  <p>Where could be problem??</p>