Change ActiveForm class

How can i change the div class in ActiveForm?

I have this code in my View:


 echo $form->field($model, "language[{$i}]")->checkbox(['class' => 'chx-lan']);

The html output is this:


<div class="col-sm-6 col-sm-offset-3">

    <input type="hidden" name="User[language][1]" value="">

    <div id="language-1" class="rdl-language form-inline">

        <div class="radio-custom radio-primary">

            <input type="radio" id="inputRadiosChecked-0" name="User[language][1]" value="1">

            <label for="inputRadiosChecked-0">Label1</label>

        </div>

        <div class="help-block help-block-error "></div>

    </div>

</div>



How can i change the css class in the first line:


<div class="col-sm-6 col-sm-offset-3">

Thanks

The following only are the html code generated for


echo $form->field($model, "language[{$i}]")->checkbox(['class' => 'chx-lan']);




        <div class="radio-custom radio-primary">

            <input type="radio" id="inputRadiosChecked-0" name="User[language][1]" value="1">

            <label for="inputRadiosChecked-0">Label1</label>

        </div>

        <div class="help-block help-block-error "></div>




The surrounding code you can change in your view file.

I don´t think you understand my question.

I know that the html is generated by the $form-field… and i know that i need change my view file

My question how can i change the div class that were generated by the active field.

I cannot comment on this as I do not understand your output. Usually a checkbox() should output an input type of checkbox, not a radio.