From 2c4ed78a7caceba585f46f08de739f7b97010b03 Mon Sep 17 00:00:00 2001 From: Klimov Paul Date: Fri, 29 May 2015 17:14:40 +0300 Subject: [PATCH] 'Asset Bundles' topic added to the docs. --- docs/guide/README.md | 1 + docs/guide/asset-bundles.md | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 docs/guide/asset-bundles.md diff --git a/docs/guide/README.md b/docs/guide/README.md index ba5bebe..db62c99 100644 --- a/docs/guide/README.md +++ b/docs/guide/README.md @@ -21,6 +21,7 @@ Usage * [Yii widgets](usage-widgets.md) * [Html helper](helper-html.md) +* [Asset Bundles](asset-bundles.md) Additional topics ----------------- diff --git a/docs/guide/asset-bundles.md b/docs/guide/asset-bundles.md new file mode 100644 index 0000000..d6cd382 --- /dev/null +++ b/docs/guide/asset-bundles.md @@ -0,0 +1,16 @@ +Asset Bundles +============= + +Bootstrap is a complex front-end solution, which includes CSS, JavaScript, fonts and so on. +In order to allow you most flexible control over Bootstrap components, this extension provides several asset bundles. +They are: + +- [[yii\bootstrap\BootstrapAsset|BootstrapAsset]] - contains only main CSS files. +- [[yii\bootstrap\BootstrapPluginAsset|BootstrapPluginAsset]] - depends on [[yii\bootstrap\BootstrapAsset]], contains javascript files. +- [[yii\bootstrap\BootstrapThemeAsset|BootstrapThemeAsset]] - depends on [[yii\bootstrap\BootstrapAsset]], contains Bootstrap default theme CSS. + +Particular application needs may require different bundle (or bundle combination) usage. +If you need only CSS styles, [[yii\bootstrap\BootstrapAsset]] will be enough for you. However, if +you want to use Bootstrap JavaScript, you need to register [[yii\bootstrap\BootstrapPluginAsset]]. + +> Tip: most of the widgets register [[yii\bootstrap\BootstrapPluginAsset]] automatically.