How To Call My Own Controller ?

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.

Try to create your own conroller and set it default with the param defaultController in config/main.php

Read this for more info

Happy coding with yii :)

Ok thanks,How do i load my view in my own controller ?

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

    ));

}