Codeigniter 4 - Naming Convention & Style Guide |
Stackoverflow link: https://stackoverflow.com/questions/6212...tyle-guide
I have found contradictory rules about Codeigniter 4 naming conventions & style guide. For example following are two guides about class names: Controller class names MUST start with an uppercase letter and ONLY the first character can be uppercase. Class names and namespaces SHOULD be declared in UpperCamelCase, also called StudlyCaps, unless another form is functionally required. Can somebody clarify about method & class naming convention and whether we have different requirements for controllers, models,helpers, etc? Can I use following convention: All Classes: Any_class Methods: any_method As URL should always be in lowercase so I think camelCase method names should not be used. What is your opinion? I know its a matter of personal choice but I want to follow best practices. |
Messages In This Thread |
Codeigniter 4 - Naming Convention & Style Guide - by myo - 06-01-2020, 02:18 AM
RE: Codeigniter 4 - Naming Convention & Style Guide - by dave friend - 06-01-2020, 08:02 AM
RE: Codeigniter 4 - Naming Convention & Style Guide - by myo - 06-01-2020, 08:28 AM
RE: Codeigniter 4 - Naming Convention & Style Guide - by jreklund - 06-01-2020, 08:47 AM
RE: Codeigniter 4 - Naming Convention & Style Guide - by svennd - 08-25-2020, 07:44 AM
RE: Codeigniter 4 - Naming Convention & Style Guide - by Chroma - 08-27-2020, 04:52 AM
|