title: In codeigniter, I created static page but still I am getting only Index.php Welcome Message
body: <p>I have installed <strong>CodeIgniter_2.1.3</strong>  and running in </p>
  
  <ul>
  <li>Windows 7</li>
  <li>Wamp Server 2.1</li>
  <li>PHP 5.3.5</li>
  <li>Apache 2.2.17</li>
  </ul>
  
  <p>I followed this  <a href="http://ellislab.com/codeigniter/user-guide/tutorial/static_pages.html" rel="nofollow noreferrer">Codeignitor Static Pages Tutorial</a> link provided in Codeignitor.</p>
  
  <p>I created, file at <strong>application/controllers/pages.php</strong> with the following code. </p>
  
  <pre><code>&lt;?php class Pages extends CI_Controller 
  {
  
      public function view($page = 'home')
      {
  
          if ( ! file_exists('application/views/pages/'.$page.'.php'))
          {
              // Whoops, we don't have a page for that!
              show_404();
          }
  
          $data['title'] = ucfirst($page); // Capitalize the first letter
  
          $this-&gt;load-&gt;view('templates/header', $data);
          $this-&gt;load-&gt;view('pages/'.$page, $data);
          $this-&gt;load-&gt;view('templates/footer', $data);
  
      }
  }
  ?&gt;
  </code></pre>
  
  <p>and then I created the header at <strong>application/views/templates/header.php</strong> with code as below:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;&lt;?php echo $title ?&gt; - CodeIgniter 2 Tutorial&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;h1&gt;CodeIgniter 2 Tutorial&lt;/h1&gt;
  </code></pre>
  
  <p>and then i created a footer at <strong>application/views/templates/footer.php</strong> with the following code:</p>
  
  <pre><code>&lt;strong&gt;&amp;copy; 2011&lt;/strong&gt;    
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and then when i called <code>http://localhost/CodeIgniter_2.1.3/index.php/pages/view/home</code></p>
  
  <p>I got this as output</p>
  
  <blockquote>
    <p>Welcome to CodeIgniter!</p>
    
    <p>The page you are looking at is being generated dynamically by
    CodeIgniter.</p>
    
    <p>If you would like to edit this page you'll find it located at:
    application/views/welcome_message.php</p>
    
    <p>The corresponding controller for this page is found at:
    application/controllers/welcome.php</p>
    
    <p>If you are exploring CodeIgniter for the very first time, you should
    start by reading the User Guide.</p>
  </blockquote>
  
  <p>instead of getting the home.php with appended header.php and footer.php.</p>
  
  <p>I suspect this is because of some wrong settings in either in codeignitor config or in php config or apache server config.</p>