Controller & Model Name |
Hello,
It's me again! Sorry, I ask a lot of questions to make the best use of CI4. On this page: https://codeigniter4.github.io/CodeIgnit...llers.html, it says "ONLY the first character can be uppercase" However, if I use the CLI command "--suffix", the controller name is called "MynameController" So: - is it correct to use the word "Controller" in the controller name? - same for Models. Should we use the word "Model" in the model name (e.g. MynameModel)? If you can tell me more about the best practices for naming files, I'm interested I think it would be nice to add this to the documentation as I seem to have seen other posts on the forum already. Thanks in advance for your anwser --- I am not a developer ---
|
Messages In This Thread |
Controller & Model Name - by InstantT - 06-27-2022, 10:17 AM
RE: Controller & Model Name - by iRedds - 06-27-2022, 02:30 PM
RE: Controller & Model Name - by kenjis - 06-27-2022, 05:06 PM
RE: Controller & Model Name - by kenjis - 06-27-2022, 07:49 PM
RE: Controller & Model Name - by FlavioSuar - 06-28-2022, 04:30 AM
RE: Controller & Model Name - by InstantT - 06-28-2022, 06:47 AM
|