From ba0f21c82e3ce31080dce523902160d4b9b127f4 Mon Sep 17 00:00:00 2001 From: Anton Date: Thu, 5 May 2022 21:24:37 +0300 Subject: [PATCH] Update basic-usage.md --- docs/guide/basic-usage.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/guide/basic-usage.md b/docs/guide/basic-usage.md index f354dfe..d743a9b 100644 --- a/docs/guide/basic-usage.md +++ b/docs/guide/basic-usage.md @@ -1,17 +1,18 @@ 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](https://getbootstrap.com/docs/). 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: +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](https://getbootstrap.com/docs/). Still Yii provides a convenient +way to include Bootstrap assets in your pages with a line(s) added to `@app/assets/AppAsset.php`(basic application): ```php public $depends = [ - 'yii\web\YiiAsset', - 'yii\bootstrap5\BootstrapAsset', // this line + <...> + yii\bootstrap5\BootstrapAsset::class, + // optional, Bootstrap icons + // yii\bootstrap5\BootstrapIconAsset::class ]; ``` -Using bootstrap through Yii asset manager allows you to minimize its resources and combine with your own resources when +Using Bootstrap through Yii asset manager allows you to minimize its resources and combine with your own resources when needed.