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 |
What is yii framework?
How to use ajax in yii?
What is yii 2? Please explain?
What is cmodel class in yii 2.0 framework?
What's new in yii release 2.0?
What is the directory structure of yii2?
Why gii is used?
How to create directory structure of yii framework?
What is gii in yii 2.0?
What are the great feature of yii framework?
Why yii is so fast?
How to use datetimepicker in yii2?