title: Codeigniter - CI_Controller vs Controller
body: <p>I am trying to follow some tutorials regarding CodeIgniter, in particular ones about extending the controller, the tutorial I am following says that in the MY_Controller file I should put the following:</p>
  
  <pre><code>    &lt;?php if (!defined('BASEPATH')) exit('No direct script access allowed');
  
  class MY_Controller extends Controller
  {
      function __construct()
      {
          parent::__construct();
      }
  }  
  </code></pre>
  
  <p>However when I do that I get the following error:</p>
  
  <p><strong>Fatal error: Class 'Controller' not found in /home/chimeri1/public_html/application/libraries/MY_Controller.php on line 3</strong></p>
  
  <p>If however I put <code>CI_Cntroller</code> instead of <code>Controller</code> it works. What is the differance? </p>
  
  <p>Also should the closing php tag <code>?&gt;</code> be added to the bottom of the MY_Controller file, some tutorials miss this out?</p>
  
  <p>Thanks in advance.</p>