PHP code example of error500 / yii2-bootstrap-vue

1. Go to this page and download the library: Download error500/yii2-bootstrap-vue library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

error500 / yii2-bootstrap-vue example snippets


    componets => [
        ...
        'vueApp' => [
            'class' => 'yii\bootstrap_vue\VueObject',
        ],
        ...
    ]

    VueAsset::register($this);

 $form = \yii\bootstrap_vue\widgets\ActiveForm::begin(); 


BootsrapVueAsset::register($this);
Yii::$app->vueApp->methods = [
    'fileChange' => 'function(file){
        ... some javascript code of root vue app object method ...
    }'
]
Yii::$app->vueApp->data = [
    'file' => null,
];
>
<b-container>
    <b-row>
...
        <b-form-file @change="fileChange" v-model="file"></b-form-file>
...
    </b-row>
<b-container>

Yii::$app->vueApp->data = [
    'prop1' => null,
    'prop2' => false,
    'prop3' => string,
]

Yii::$app->vueApp->methods = [
    'methodName' => 'function(args) {
        method javascript code
    }'
]
Yi::$app->vueApp->computed = [
    'computedPropName' => 'function(){ javascript }'
]

php composer.phar