문제

Let I've written the following action class:

class TranAction extends CAction{
    public function run(){
        echo "Hello Yii";
    }
}

Now I want to render myView view, but I dont know how can I invoke controller's render() method from run() method?

도움이 되었습니까?

해결책

$this->controller->render('myView');
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top