I am new to code igniter and have the following setup in my project files
Models:
Model1
Model2
Controller:
Controller1 [which has only index method]
Controller2 [which has index method of its own]
View:
Views/MyFolder1/index.php [which is view for Controller1]
Views/MyFolder2/index.php [which is view for Controller2]
Routes.php has following code
$route['MyFolder1'] = 'Controller1/index'; // Route to Controller 1 index
$route['MyFolder2'] = 'Controller2/index'; // Route to Controller 2 index
$route['default_controller'] = 'Controller1';
config.php has
$config['base_url'] = 'http://localhost/projectname';
When I try to call http://localhost/projectname/Controller2/index.php or http://localhost/Controller2 I keep getting Error 404 Page not found . Can you please help resolve this problem ?
Thanks