How can I font awesome icon after form field label

How can I add the following html after a form field label

<i class="fa fa-info-circle"></i>

Field code

<?= $form->field($model, 'title') ?>

Hi, if I understand you correctly

<?= $form->field($model, 'title', [

   'inputTemplate' => '<div class="input-group"><span class="input-group-addon"><i class="fa fa-info-circle"></i></span>{input}</div>'

]); ?>

Be better if you show with pure html what you want do.

1 Like

Esta respuesta me sirvio, para mostrar el icono del telefono antes del label :

<?= $form->field($model, 'TELEFO', [ 'template' => '
' ])->textInput(['maxlength' => true]) ?>