Where's my bootstrap.js file?

Got this asset bundle class:


namespace backend\assets;

use yii\web\AssetBundle;

class AppAsset extends AssetBundle


    public $basePath = '@webroot/assets';

    public $baseUrl = '@web/assets';

    public $css = [







    public $js = [






    public $depends = [





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?


BootstrapAsset includes only css, you need BootstrapPluginAsset

That did it, thanks :)