Welcome Guest, Not a member yet? Register   Sign In
CI4 doesn't support hyphens/dashes in controller subdirectories
#2

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
Reply


Messages In This Thread
RE: CI4 doesn't support hyphens/dashes in controller subdirectories - by includebeer - 12-16-2020, 04:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB