Codeigniter unable to load the requested file: template.php
<p>I have created a template folder that contains header.php, head.php, foot.php and footer.php in views folder. I tried to load the template folder and my login.php by using this code below:</p>

<pre><code>$this-&gt;load-&gt;view('template', array(
        'title'     =&gt;   'Login',
        'view_file' =&gt; 'login',
    ));
</code></pre>

<p>and it gives me an error like this: Unable to load the requested file: template.php, I am not sure what I did wrong. So, any help would be highly appreciated.</p>