(04-22-2020, 12:36 PM)HardyW Wrote: I understand what you are all saying but what I still do not get is why CodeIgniter cannot figure out the controller from the URL with any kind of spelling. The part in the URL that is used for specifying the controller is case-sensitive (just because (a lot of) people use only lowercase URLs does not mean that everybody should be forced doing so).
The only argument I can imagine so far is to be compatible with older versions. But this can be solved with a flag in a conf file.
BTW: I do not want to define a route for the controller because this is just another source of error.
IIRC correctly, the HTTP spec says the URL's should be treated in a case-insensitive manner.
Barring that, it's already been explained. It has to do with matching class names to right class through the autoloader. If you want to know more, please dig through the code and see if you can solve the problem. If you can make it work, then awesome - submit a PR and we'll consider it.
Personally, I find specifying the route in a routes file to be less error prone, more specific, and more flexible.