Hello,
I have a problem. I have a commentController. And in its _view.php I used renderPartial to render _form.php.
Here is the code.
<div class="view">
<b><?php echo CHtml::encode($data->getAttributeLabel('owner_id')); ?>:</b>
<?php echo CHtml::encode($data->owner->logName); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('message')); ?>:</b>
<?php echo CHtml::encode($data->message); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('ognoo')); ?>:</b>
<?php echo CHtml::encode($data->ognoo); ?>
<br />
</div>
<?php
$model= new Comments;
$this->renderPartial('_form', array('model'=>$model ));
?>
And it rendered properly. I think i was just rendered in _view.php. There is no other change. But form didn’t work. I do not know why.
And sorry for my english. It is not good.