Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Yii2 Bootstrap ActiveForm horizontal layout checkbox syntax
use yii\bootstrap\ActiveForm;
use yii\bootstrap\ActiveField;
$activeField = new ActiveField();
?><div class="tour-form">
<?php $form = ActiveForm::begin(); ?>
<div class="form-horizontal">
echo <<<HTML
'wrapperOptions' => ['class' => 'col-sm-offset-4 col-sm-8'],
'template'=> $activeField->horizontalCheckboxTemplate,
<?php ActiveForm::end(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.