fouss
(Jsfousseni)
1
how to define a default textField value?
I want to see a defaut textField value in a textField and fill the others textFields.
<div class="row">
<?php echo $form->labelEx($model,'text_name'); ?>
<?php echo $form->textField($model,'text_name',array('size'=>45,'maxlength'=>45)); ?>
</div>
tri
(tri - Tommy Riboe)
2
Initialize the ‘text_name’ property in your model
public text_name = '...';
/Tommy
fouss
(Jsfousseni)
3
I found a solution in this post link
thanks!
mdomba
(Maurizio Domba Cerin)
4
or
if that is an attribute of the model object… than after the $model= new model you just initialize that attribute
$model->text_name=…