Answer Posted / 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 |
Post New Answer View All Answers