コントローラーからのコード:
public function actionSomeName($param){
do something here...
$this->renderPartial('_formCalculations', array(
'modelX'=>$modelX,
'modelY'=>$modelY,
));
}
ビューでその関数を呼び出したいのですが、うまくいきません。正しい$this->renderPartial
ですか?ビュー専用なので、そうではないと思いますか?しかし、その場合、どの機能を使用する必要がありますか?
$this->renderPartial('Controllername/Somename',array("param"=>"value"));