1124ritesh
(1124ritesh)
1
I want to change the default bootstrap.min.css path for advanced tempelate.
I did this in components section of config file.
'assetManager' => [
'bundles' => [
'yii\bootstrap\BootstrapAsset' => [
'sourcePath' => null,
'css' => ['css/bootstrap.min.css']
],
]
]
my file is in backend/web/css folder
but its not picking up…404 error
rugabarbo
(Pavel Ivanov)
2
Use basePath and baseUrl:
'assetManager' => [
'bundles' => [
'yii\bootstrap\BootstrapAsset' => [
'sourcePath' => null,
'basePath' => '@backend/web',
'baseUrl' => '<your-backend-home-url>',
'css' => ['css/bootstrap.min.css']
],
]
]
1124ritesh
(1124ritesh)
3
Thanks it worked…
'assetManager' => [
'bundles' => [
'yii\bootstrap\BootstrapAsset' => [
'sourcePath' => null,
'baseUrl' => '@web',
'css' => ['css/bootstrap.min.css']
],
]
]