I want to fill one of the textfields with a value from a database.
Commonly, this code was recommended:
<div class="row">
<?php echo $form->labelEx($model,'field1'); ?>
<?php echo Model1::model()->FindByPk($model->id)->field1;?>
<?php echo $form->error($model,'field1'); ?>
</div>
But, the one I'm searching is the value is filled into textfield at the form.
Could anyone help me? Thanks..