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

(12-16-2020, 04:03 PM)includebeer Wrote: Why don't you just set the auto-route to false and define your own route?
Doesn't that necessitate the maintenance of a separate list of url mappings in the routes file? I.e., an extra step that, if done incorrectly, yields a broken url -- and also potentially a bottleneck if you have a bunch of developers adding controllers/methods that require such routing.

The solution I've mentioned is currently adequate. You just have to be careful to name the subdirectory in the Controllers folder using a hyphen and remember to use a underscore in the namespace declaration in your controllers.
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB