Yii2 checkbox template change

Hi Team,

Yii2 checkbox template how to change,i used this code


<?= $form->field($yourModel, 'attribute')->checkbox([], false) ?>

But it displaying below format only.


<label for="idname">Active</label>

 <input type="checkbox" id="idname" />

I need


<input type="checkbox" id="idname"/><label for="idname">Active</label>

this type of format.Because materialize this format only displaying.Anyone can help me please, how to display this type format in checkbox

Did not try this but …

I think the template should be in this format.

and added to the options array.