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