Answer the question
In order to leave comments, you need to log in
How to include bootstrap only in a module?
Hello! In the yii2 basic application, the admin panel is located in the admin module. In the frontend, I don't want to use the bootstrap and jQuery built into yii2, so I disabled them via config/web:
'assetManager' => [
'bundles' => [
'dmstr\web\AdminLteAsset' => [
'skin' => 'skin-blue',
],
'yii\web\JqueryAsset' => [
'js'=>[]
],
'yii\bootstrap\BootstrapPluginAsset' => [
'js'=>[]
],
'yii\bootstrap\BootstrapAsset' => [
'css' => [],
],
],
],
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question