Revision #193 has been created by rackycz on May 7, 2020, 11:00:35 AM with the memo:
Bootswatch
« previous (#192) next (#194) »
Changes
Title
unchanged
Yii v2 snippet guide
Category
unchanged
Tutorials
Yii version
unchanged
2.0
Tags
unchanged
tutorial,beginner,yii2
Content
changed
[...]
Note: If you want to download the theme, you should link it like this:
```html
<link href="<?=Yii::$app->getUrlManager()->getBaseUrl()?>/css/bootstrap-bootswatch-united.min.css" rel="stylesheet">
```
Now you technically do not need the original bootstrap.css file yo you can remove it in "basic/config/web.php" by adding the assetManager section to "components":
```php
'components' => [
// https://stackoverflow.com/questions/26734385/yii2-disable-bootstrap-js-jquery-and-css
'assetManager' => [
'bundles' => [
'yii\bootstrap\BootstrapAsset' => [
'css' => [],
],
],
],
```