error500/yii2-bootstrap-vue

Replace for yii2-bootstrap

0.0.1-rc6 2021-05-29 08:58 UTC

This package is auto-updated.

Last update: 2021-11-29 10:18:14 UTC


README

Replace for yii2-bootstrap

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist error500/yii2-bootstrap-vue "*"

or add

"error500/yii2-bootstrap-vue": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

  • Add vueApp component to config of your web application
    componets => [
        ...
        'vueApp' => [
            'class' => 'yii\bootstrap_vue\VueObject',
        ],
        ...
    ]
<?php $form = \yii\bootstrap_vue\widgets\ActiveForm::begin(); ?>
    <div class="row">
        <div class="col-xs-12 col-md-6">
            <?php echo $form->field($model, 'attribute', [])
                    ->text()
                    ->label();
            ?>
        </div>
    </div>
<?php \yii\bootstrap_vue\widgets\ActiveForm; ?>