来自控制器的代码:
public function actionSomeName($param){
do something here...
$this->renderPartial('_formCalculations', array(
'modelX'=>$modelX,
'modelY'=>$modelY,
));
}
我想在我看来调用该函数,但它不起作用。是否$this->renderPartial
正确?我认为不是,因为它只是为了观看?但是我必须使用哪个功能呢?
$this->renderPartial('Controllername/Somename',array("param"=>"value"));