\'contact-form\']); ?>
= $form->field($model, \'email\', [
\'inputOptions\' => [
I have solved it like this....put tag as span.. also you can prepend icons infront of the box.
'login-form',
'options' => ['role'=>'form'],
'fieldConfig' => [
'options' => [
'tag' => 'span',
],
],
]); ?>
= $form->field($model, 'username',[
'template' => '
{input}
{error}',
'inputOptions' => [
'placeholder' => 'Username ...',
'class'=>'form-control',
]])
?>
= $form->field($model, 'password', [
'template' => '
{input}
{error}',
'inputOptions' => [
'placeholder' => 'Password ...',
'class'=>'form-control',
]])->input('password')
?>