Question:Discuss the controller and its method convention in yii. 

Answer : A controller is an instance of CController or of a class that extends CController. It is created by the application object when the user requests it. controller convention: The ControllerID in CamelCase suffixed with ‘Controller’ ex. SiteController, where Site is the ControllerID. Method convention: camelCase with first letter lowercase like getProperty(),actionCreate().Ex: public function actionCreate() { block of statement } 

+ Report
Total Preview: 874
Discuss the controller and its method convention in yii.
Copyright © 2024. Powered by Intellect Software Ltd