====== Yii2 form textInput ======

<code php>
<?= $form->field($model, 'name')->textInput(['maxlength' => 255]) ?>
</code>