For Security reasons as mentioned here http://codeigniter.com/user_guide/installation/index.html 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.
C:\wamp\www\OSW_appnsys\application\controllers
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
The requested URL /CodeIgniter_2.1.2/pages/view/products was not found on this server.
where product is the URI.
And I am calling this way:
<a class="mainmenu" href="<?php echo base_url('pages/view/products')?>">Products</a>
Any help will be highly appreciated. Ty
After moving them, open your main index.php file and set the $system_folder and $application_folder variables, preferably with a full path, e.g. '/www/MyUser/system'.? - tijs