CI4 doesn't support hyphens/dashes in controller subdirectories |
Why don't you just set the auto-route to false and define your own route?
PHP Code: $routes->setAutoRoute(false); Then you can name your controllers and methods to whatever you want and it doesn't need to match what's in the URL. There are still some rules to follow, like the first uppercase letter, but you have more flexibility this way. http://codeigniter.com/user_guide/incomi...outes-only |
Messages In This Thread |
CI4 doesn't support hyphens/dashes in controller subdirectories - by sneakyimp - 12-15-2020, 01:01 PM
RE: CI4 doesn't support hyphens/dashes in controller subdirectories - by includebeer - 12-16-2020, 04:03 PM
RE: CI4 doesn't support hyphens/dashes in controller subdirectories - by sneakyimp - 12-16-2020, 05:39 PM
RE: CI4 doesn't support hyphens/dashes in controller subdirectories - by includebeer - 12-17-2020, 05:17 PM
RE: CI4 doesn't support hyphens/dashes in controller subdirectories - by kenjis - 02-17-2021, 04:20 AM
RE: CI4 doesn't support hyphens/dashes in controller subdirectories - by sneakyimp - 02-17-2021, 06:38 AM
RE: CI4 doesn't support hyphens/dashes in controller subdirectories - by kenjis - 02-17-2021, 04:43 PM
RE: CI4 doesn't support hyphens/dashes in controller subdirectories - by sneakyimp - 02-17-2021, 06:03 PM
RE: CI4 doesn't support hyphens/dashes in controller subdirectories - by sneakyimp - 02-18-2021, 11:05 PM
|