- Use renderPartial(with return=true) to render result of first for in temporal variable.
- Use the variable in second view.
See CController renderPartial() for details
$form1 = $this->renderPartial('firstView', $data1, true);
$this->renderPartial(
'//utente/_form',
array(
'model'=>new User,
'condition'=>$condition,
'form' => $form,
'rule' => '3',
'form1' => $form1
),
false,
true
);