Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

yii framework populate the values in textarea

I need to populate the value in textarea.

For text field i used the following command $form->textField($model,'phone',array('value'=>$savedvalues['varPhone']))

It works fine. But for textarea the 'value' parameter is not supported.

Here where i have to display my value parameter

$form->textArea($model, 'corporateaddress', array('rows'=>6, 'cols'=>50))
like image 684
designersvsoft Avatar asked Jan 17 '23 21:01

designersvsoft


1 Answers

You can do this, if you absolutely have to use $savedvalues array:

$model->corporateaddress=$savedvalues['varCorporateAddress'];
$form->textArea($model, 'corporateaddress', array('rows'=>6, 'cols'=>50));
like image 136
bool.dev Avatar answered Jan 25 '23 14:01

bool.dev