You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
638 B
18 lines
638 B
10 years ago
|
Basic Usage
|
||
|
===========
|
||
|
|
||
|
Yii doesn't wrap the bootstrap basics into PHP code since HTML is very simple by itself in this case. You can find details
|
||
|
about using the basics at [bootstrap documentation website](http://getbootstrap.com/css/). Still Yii provides a
|
||
|
convenient way to include bootstrap assets in your pages with a single line added to `AppAsset.php` located in your
|
||
|
`@app/assets` directory:
|
||
|
|
||
|
```php
|
||
|
public $depends = [
|
||
|
'yii\web\YiiAsset',
|
||
|
'yii\bootstrap\BootstrapAsset', // this line
|
||
|
];
|
||
|
```
|
||
|
|
||
|
Using bootstrap through Yii asset manager allows you to minimize its resources and combine with your own resources when
|
||
|
needed.
|