value of textArea

Hello everyone,

I would fill a textarea from databases, but the attribute value is not performed. how can I populate the textfield?

textarea doesn’t have a “value” attribute.

You’d have to echo the value inside the <textarea><?php echo $model->attribute;?></textarea> or use CHtml helper

CHtml::textArea() / $form->activeTextArea()

thanks again twisted1919 ! ;D