Usando 2 render no actionCreate

Hello there!

é possivel usar 2 render dentro do actionCreate

e pegar um falor via GET no outro _form?

att,

sim, é só usar

é melhor pegar o GET no controller e então enviar para a view

Gustavo,

tem um exemplo?

to colocando o $_GET na view e isso não esta muito certo …


//controller

$this->render('view',array('model'=>$model,'id'=>$_GET['id']));


//view

$this->renderPartial('_form',array('model'=>$model,'id'=>$id));


//_form

echo $id;

Obrigado Gustavo!