public function actionRenderForm(...) {
....
$this->renderPartial('form', array(...), false, true);
}
, в основной вью (которую рендерит actionView или actionEdit, не знаю, как у вас) добавьте jquery код по загрузке формы, что-то вроде(function($) {
$.get(".$this->createUrl('renderForm').", {...}, function(data) {
$('#formHolder').append(data);
});
})(jQuery)
/**
* The pre-filter for controller actions.
* This method is invoked before the currently requested controller action and all its filters
* are executed. You may override this method in the following way:
* <pre>
* if(parent::beforeControllerAction($controller,$action))
* {
* // your code
* return true;
* }
* else
* return false;
* </pre>
* @param CController $controller the controller
* @param CAction $action the action
* @return boolean whether the action should be executed.
*/
public function beforeControllerAction($controller,$action)
{
if(($parent=$this->getParentModule())===null)
$parent=Yii::app();
return $parent->beforeControllerAction($controller,$action);
}