Welcome Guest, Not a member yet? Register   Sign In
Controller naming PascalCase
#2

If you develop on Windows, it finds files regardless of their case (camel, pascal, ransom).
That often breaks when running your app on Linux, as it appears you have discovered.
With URI routing, the deemed lowercase controller name has the first letter capitalized, and that is the source file that CI's loader looks for.
The proper way to get around that is with routing rules, which is the solution you came up with.

This is a feature of CI's routing.

Your mod_speling suggestion might help with Apache, but I don't know if the same is available for NGINX, nor do I suspect it would be easy to build into PHP's builtin server (thru our spark script).
Reply


Messages In This Thread
Controller naming PascalCase - by RedskyThirty - 12-12-2019, 12:24 PM
RE: Controller naming PascalCase - by ciadmin - 12-12-2019, 01:53 PM
RE: Controller naming PascalCase - by dave friend - 12-19-2019, 12:02 AM
RE: Controller naming PascalCase - by MGatner - 12-20-2019, 07:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB