My default_controller in the routes configuration is set as \"home.php\".
I have a sub directory for my controllers, lets call it \"folder\". So if I visit http://my
MY FOLDER STRUCTURE
--controllers
--backend
--frontend
--home.php
--products.php
--productDetail.php
--homeIndex.php
In config/routes.php
$route['default_controller'] = 'homeIndex';
$route['frontend'] = 'frontend/home';
$route['backend'] = 'backend/home';
In controllers/homeIndex.php
action();
}
}
by default homeIndex will be loaded and from homeIndex i call to frontend/home/action function.