Call render from smart Action

HI all,

I am new to Yii and trying to work my way through a practical example to help me understand it a little better. I am currently implementing smart actions. In my action that extends CAction, I am not sure where I am supposed to place the $this->render(…) method to execute the view. I tried keeping it in the Action but it can't find the render method because the render method is not apart of the CAction class it is apart of the CController class. Any help would be greatly appreciated.

Thanks in advance

I would say do not try "smart actions" as your first step of learning Yii. Smart actions are mainly needed when you are developing a widget which requires a set of actions.

If you want to render a view in an action, call $this->controller->render(), where $this refers to the action instance.

oh ok thanks Qiang