CodeIgniter Static Page Tutorial(Unable to load the requested file)
<p>I've recently downloaded CodeIgniter and install it in XAMPP htdoc -> codeigniter(application,system,user guide,index.php,license.txt)</p>

<p>I've tried to follow with the tutorial posted in CodeIgniter's User Guide on <a href="http://codeigniter.com/user_guide/tutorial/static_pages.html" rel="nofollow">creating static pages</a> but I keep getting this error: </p>

<p>Unable to load the requested file: pages/home.php</p>

<p>The controller is at application/controllers/pages.php with the following code:</p>

<pre><code>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);
    }
}
</code></pre>

<p>The tutorial also mentioned about creating header.php in application/views/templates/header.php and footer.php in application/views/templates/footer.php, which are just html code and echo out the page title.</p>

<p>And finally also creating a home.php and about.php in application/views/pages/ directory. For home.php and about.php I only type out some plain text. </p>

<p>Where did I go wrong. Any advice would be greatly appreciated. :) Thank you.</p>
