YesIAm
(Gergs Forex)
1
So I have added in non-model fields to my _form.php:
<?= Html::textInput(‘percent’, ‘’) ?>
The problem is, it does not contain the same styles of the other ActiveForm fields.
How can I add the div class that is implemented for $form->field version of the textInput to the above Html::textInput ?
Pasman
(Pasman P)
2
this classes are from bootstrap
YesIAm
(Gergs Forex)
3
for future reference if anyone else needs it, this is accomplished by:
<?= Html::textInput(‘percent’, ‘’, [‘class’ => ‘form-control’]) ?>
Hence, the ‘form-control’ class is added to the textInput, that is not part of the model 