Answer the question
In order to leave comments, you need to log in
Why is Bootstrap disabled when any widget is connected?
I need to include Bootstrap.js on every page of the site:
public $depends = [
'yii\web\JqueryAsset',
'yii\bootstrap\BootstrapAsset'
];
public function init()
{
parent::init();
// resetting BootstrapAsset to not load own css files
Yii::$app->assetManager->bundles['yii\\bootstrap\\BootstrapAsset'] = [
'js' => ['js/bootstrap.min.js']
];
}
Answer the question
In order to leave comments, you need to log in
Solved by connecting BootstrapPluginAsset
public $depends = [
//'yii\web\JqueryAsset',
//'yii\bootstrap\BootstrapAsset'
'yii\bootstrap\BootstrapPluginAsset'
];
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question