Hello Friends,
If you are looking to set any controller as a default controller in your project like when open any website generally Index controller call automatically. For example you want to run "Project Controller" instead of "Welcome controller" in your website you need to make following changes.
Open:: codelgniter/application/config/routes.php
On the bottom of file you see a variable define as
$route['default_controller'] = 'Welcome';
//Change the Welcome with your desirable controller
$route['default_controller'] = 'Project';
0 Comment(s)