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 ?
this classes are from bootstrap
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