I’m a little confused with the documentation on how to display some form fields side by side.
I have started with the basic
<?php $form = ActiveForm::begin([ 'layout' => 'horizontal', 'action' => ['index'], 'method' => 'get', 'fieldConfig' => [ 'horizontalCssClasses' => [ 'label' => 'col-sm-2', 'offset' => 'col-sm-offset-2', 'wrapper' => 'col-sm-4', ], ], ]); ?>
but i can’t figure out how to place the fields in 2x2 grid - ie, i have 4 fields and i want them in 2 groups of 2 side by side.
Can anyone help me make out the docs on how to do it with the bootstrap/ActiveForm so i don’t have to add css by hand ?