I inherited a codeigniter website, and upgraded codeigniter. Figured out the controller files have to start with capital letters, and I got most of the routes and views working again. Except for the Admin portion of the site. The routes for this portion is not in the routes.php file, but in a different file. And the controllers is in a sub directory called admin, which I renamed to Admin. So even though there is for example an entry:
PHP Code:
$route['admin'] = 'admin/admin/index'
When I go to /admin I get 404, and logs show:
Code:
404 Page Not Found: Admin/admin
I've even tried putting eg
PHP Code:
$route['admin/login'] = "admin/admin/login";
in the routes.php file, but I still see in the logs
Code:
404 Page Not Found: Admin/admin
even though:
Code:
$ grep admin config/routes.php
route['admin/login'] = "admin/admin/login";
$ grep login controllers/Admin/Admin.php
public function login()
How can I troubleshoot these 404 errors in order to properly load the routes in the sub folder?