title: CodeIgniter loading a view through controller from another view
body: <p>For Security reasons as mentioned here <a href="http://codeigniter.com/user_guide/installation/index.html" rel="nofollow">http://codeigniter.com/user_guide/installation/index.html</a> I have placed the system and application folders in another folder called OSW_appnsys, which is above the web root folder. Now I have a controller class called 'Pages' and a 'View' function in it in the following directory.</p>
  
  <pre><code>C:\wamp\www\OSW_appnsys\application\controllers
  </code></pre>
  
  <p>Now when I am calling the 'View' method of the controller 'Pages' from another view file called 'header.php' I am getting the 404 error like this</p>
  
  <pre><code>The requested URL /CodeIgniter_2.1.2/pages/view/products was not found on this server.
  </code></pre>
  
  <p>where product is the URI.</p>
  
  <p>And I am calling this way:</p>
  
  <pre><code>&lt;a class="mainmenu" href="&lt;?php echo base_url('pages/view/products')?&gt;"&gt;Products&lt;/a&gt;
  </code></pre>
  
  <p>Any help will be highly appreciated. Ty</p>