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

(12-19-2019, 12:02 AM)daveĀ friend Wrote:
(12-16-2019, 01:09 AM)RedskyThirty Wrote: No, I don't have controllers with same names, I would never do that ;-) But I don't want to have url with uppercases..

And you probably should not have URLs that are case-sensitive.

There are two ways to correct the problem. 1. Don't use PascalCase for controller names. Instead, use uppercase only on the first character. 2. Go ahead and use PascalCase, but define a route that points to the correct (fully PascalCase named) controller.

I believe that yet to be released documentation makes note of these options. Sorry you had to learn this the hard way.

Yes, if you take a look at my post, I have defined some routes because I want to be consistent. All my classes are in PascalCase. I would like to do the same thing with my methods but for the moment it's not possible and I don't want to add routes for each method in each class. It would be nice if the framework could recognize methods in camelCase as snakeCase or kebabCase.
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 RedskyThirty - 12-19-2019, 01:27 AM
RE: Controller naming PascalCase - by MGatner - 12-20-2019, 07:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB