<?php $form = ActiveForm::begin([ 'options'=>['class' => 'form form-horizontal'], 'fieldConfig' => ['template' => '{input}'], ]);?>