ezekel
(Dixunei)
August 29, 2014, 2:54pm
1
Hi, I would like to ask some help I am still learning yii framework. In creating the webapp, yii created default SiteConroller etc…,Now I want to create my own Controller and I want to load my own login form as my index.php
can you help me how to do this in yii.
Thank you in advance.
thientc
(Fal Etc)
August 29, 2014, 4:20pm
2
Try to create your own conroller and set it default with the param defaultController in config/main.php
Read this for more info
This is the third post in my series on Yii, my favorite PHP framework. , I show how to download and test the framework itself. , I show how to create a basic Web application. The end of that post a…
Happy coding with yii
ezekel
(Dixunei)
August 29, 2014, 4:38pm
3
Ok thanks,How do i load my view in my own controller ?
thientc
(Fal Etc)
August 29, 2014, 4:48pm
4
I dont understand, do you mean something like this in controller?
public function actionUpdate($id) {
$data=$this->loadModel($id);
$this->render('update',array(
'model'=>$data
));
}