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))
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));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With