title: Code Igniter MVC Displaying Basic View
body: <p>Excuse me if this is slightly newbie. </p>
  
  <p>I have the main view located @ app/views/index.php as:</p>
  
  <pre><code>&lt;?php echo $head ?&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;div id="container"&gt;
      &lt;h1&gt;Welcome to CodeIgniter!&lt;/h1&gt;
  
      &lt;div id="body"&gt;
          &lt;p&gt;The page you are looking at is being generated dynamically by CodeIgniter.&lt;/p&gt;
  
          &lt;p&gt;If you would like to edit this page you'll find it located at:&lt;/p&gt;
          &lt;code&gt;application/views/welcome_message.php&lt;/code&gt;
  
          &lt;p&gt;The corresponding controller for this page is found at:&lt;/p&gt;
          &lt;code&gt;application/controllers/welcome.php&lt;/code&gt;
  
          &lt;p&gt;If you are exploring CodeIgniter for the very first time, you should start by reading the &lt;a href="user_guide/"&gt;User Guide&lt;/a&gt;.&lt;/p&gt;
      &lt;/div&gt;
  
      &lt;p class="footer"&gt;Page rendered in &lt;strong&gt;{elapsed_time}&lt;/strong&gt; seconds&lt;/p&gt;
  &lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The header_meta.php file located at (app/views):</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Title&lt;/title&gt;
      &lt;link rel="icon" type="image/png" href="img/favicon.ico" /&gt;
      &lt;!--meta--&gt;
  </code></pre>
  
  <p>the controller, named SpecialPage.php located at app/controllers/:</p>
  
  <pre><code>&lt;?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  
  class SpecialPage extends CI_Controller {
  
      function SpecialPage(){
          parent::CI_Controller();
      }
  
      public function index()
      {
          $head = $this-&gt;load-&gt;view('header_meta', '', true);
          $this-&gt;load-&gt;view('index', array('head' =&gt; $head));
      }
  }
  
  /* End of file welcome.php */
  /* Location: ./application/controllers/welcome.php */
  </code></pre>
  
  <p>Error I'm getting on SpecialPage.php controller:
  <code>Call to undefined method CI_Controller::CI_Controller() on line 6</code>
  which is:
  <code>function SpecialPage(){
          parent::CI_Controller();
      }</code></p>
  
  <p>Why is this still just showing a 404 error?????</p>