Where's my bootstrap.js file?

Got this asset bundle class:




<?php


namespace backend\assets;


use yii\web\AssetBundle;


class AppAsset extends AssetBundle

{

    public $basePath = '@webroot/assets';

    public $baseUrl = '@web/assets';

    public $css = [

        'css/font-awesome.min.css',

        'css/ionicons.min.css',

        'css/adminlte.css',

        'css/skin-blue.css',

        'css/common.css',

    ];

    public $js = [

        'js/knockout-3.1.0.js',

        'js/notify.js',

        'js/adminlte.js',

        'js/app.js'

    ];

    public $depends = [

        'yii\web\YiiAsset',

        'yii\bootstrap\BootstrapAsset',

    ];

}




which produces:




<script src="/yii-basic/backend/assets/cache/c4a2702c/jquery.js"></script>

<script src="/yii-basic/backend/assets/cache/26ff355/yii.js"></script>

<script src="/yii-basic/backend/assets/js/knockout-3.1.0.js"></script>

<script src="/yii-basic/backend/assets/js/notify.js"></script>

<script src="/yii-basic/backend/assets/js/adminlte.js"></script>

<script src="/yii-basic/backend/assets/js/app.js"></script> 



But the bootstrap.js file isn’t included, why is that?

I don’t use any bootstrap widget in the page, is that the reason?

If so, and i register the bootstrap.js file manually it will be loaded twice once a bootstrap widget will be used, so that’s not an option.

Am i missing something easy here, shouldn’t the bootstrap js file be included once i say my scripts depend on it?

Thanks.

BootstrapAsset includes only css, you need BootstrapPluginAsset

That did it, thanks :)