Difference between #192 and #193 of
Yii v2 snippet guide

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' => [],
 
 ],
 
     ],
 
   ],
 
```
 
7 0
4 followers
Viewed: 275 332 times
Version: 2.0
Category: Tutorials
Written by: rackycz
Last updated by: rackycz
Created on: Sep 19, 2019
Last updated: a year ago
Update Article

Revisions

View all history