I am using CodeIgniter framework for my project. While using CodeIgniter, I discovered that "Welcome.php" is CodeIgniter's default controller file. But I want to make another file "Home.php" as my default controller.
I tried to put in the "routes.php" file in the configuration folder
$route['default_controller'] = 'welcome';
Change to
$route['default_controller'] = 'home';
But it didn't work.
According to the description of document
If you use
$route['default_controller'] = 'welcome';
, then it will callWelcome::index()
So when you change to
$route['default_controller'] = 'home';
You should have
Home::index()