Codxplore.com

Latest news:

New android application Islamic Video has been released. its a free islamic video application for android smartphone. Download now!

How to use Yii2 Textarea


TextArea Field :

 

The model attribute value shal be used as the content in the textarea.

field($model, 'desc')->textarea(); ?>
field($model, 'desc')->textarea()->label('Description'); ?>
field($model, 'desc')->textarea(array('rows'=>2,'cols'=>5)); ?>

 

Tags :

Views : 1120

Subscribe Us


Follow Us