how to define a default textField value?

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>



Initialize the ‘text_name’ property in your model




public text_name = '...';



/Tommy

I found a solution in this post link

thanks!

or

if that is an attribute of the model object… than after the $model= new model you just initialize that attribute

$model->text_name=…