title: 404 error in new page created in codeigniter
body: <p>I've created one <code>test.php</code> file in location <code>applications\views\test\test.php</code> with controller in <code>application\controller\Test.php</code> &amp; model in <code>applications\models\Test_model.php</code>.</p>
  
  <p>In my <code>routes.php</code> file, I have added <code>$route['test']='test/view'</code>.</p>
  
  <p>Please note there are some files present already which are working quite fine, one of which is <code>login.php</code> &amp; it has value in <code>routes.php</code> as <code>$route['login']='login/view'</code>. Plus this file does have same model &amp; controller files in likewise location.</p>
  
  <p>When I try to access <code>localhost\test</code>, it gives me 404 error whereas for <code>localhost\login</code> works quite fine.</p>
  
  <p>Can anybody help in routing? I'm new to codeigniter &amp; I could not resolve this issue.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>htaccess works fine as <code>localhost\login</code> is loading properly along with other few files.</p>
  
  <p><strong>EDIT 2</strong></p>
  
  <p><strong>Test_model.php</strong></p>
  
  <pre><code>&lt;?php
  class Test_model extends CI_Model{
    public function __construct()
    {
      $this-&gt;load-&gt;database();
    }
  }
  ?&gt;
  </code></pre>
  
  <p><strong>test.php</strong></p>
  
  <pre><code>&lt;div&gt;Testing&lt;/div&gt;
  </code></pre>
  
  <p><strong>Test.php</strong></p>
  
  <pre><code>&lt;?php
  class Test extends MY_Controller{
    public function __construct()
    {
      parent::__construct();
      $this-&gt;load-&gt;model('test_model');
    }
    public function view()
    {
      $this-&gt;loadHeader();
      $this-&gt;load-&gt;view('test/test');
      $this-&gt;loadFooter();
    }
  }
  ?&gt;
  </code></pre>
  
  <p><strong>routes.php</strong></p>
  
  <pre><code>$route['test'] = 'test/view';
  </code></pre>
  
  <p><strong>EDIT 3</strong></p>
  
  <p>When I try to access <code>localhost\application\controllers\Test.php</code>, it gives me an error that says <code>Class My_Controller</code> not found. However, when I attempt to do it with any other file let's <code>login</code> with with the same location, it gives me the same error.</p>
  
  <p>So I guess, it's able to find the controller because it's giving an error obviously but not able to load anything else.</p>
  
  <p>Is there some sort of config file in which I have to mention every new page I create or something? There has to be something. This is pretty basic &amp; I'm not able to get to the root of it.</p>
  
  <p><strong>EDIT 4</strong></p>
  
  <p>So this is what a problem is. When I copied my test view file to pages folder, it worked. Of course in controller I edited path of the file.</p>
  
  <p>Now the real question is why didn't new folder named test under views work?</p>