What is the naming convention in yii framework?
Answer / Amarjit Kumar
In Yii, the naming conventions follow a specific pattern. For controllers, the class name should be the module ID followed by the controller ID, and the filename should be the same as the class name with the 'Controller' suffix removed. For example, if your controller is 'admin/user', the class name would be AdminUserController, and the filename would be adminuser.php. For models, the class name should match the table name in lowercase, and the filename should be the same as the class name with the '.php' extension.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain request life cycle in yii2 framework.
How to use delete(), insert() and save() methods in yii2?
How we can set default controller in yii?
How we can remove index.php from url in yii?
How to install yii framework?
Why gii is used?
What is filter on yii framework ?
What is yii framework?
How to use module components and aliases?
What is active record (ar) in yii framework?
List out some database related functions in yii?
What is the component, helper and why are they used, is there other way we can do same thing, what is better?