From 9e1fa1f7a4ea5c3ee6ae6a5c124ecf600393337b Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Wed, 20 Nov 2013 22:56:21 -0500 Subject: [PATCH] Added code example. --- framework/yii/web/AssetManager.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/framework/yii/web/AssetManager.php b/framework/yii/web/AssetManager.php index b562cf6..0a8b0b8 100644 --- a/framework/yii/web/AssetManager.php +++ b/framework/yii/web/AssetManager.php @@ -41,9 +41,18 @@ use yii\helpers\FileHelper; class AssetManager extends Component { /** - * @var array list of available asset bundles. The keys are the class names of the asset bundles, - * and the values are either the configuration arrays for creating the [[AssetBundle]] objects - * or the corresponding asset bundle instances. + * @var array list of available asset bundles. The keys are the class names (without leading backslash) + * of the asset bundles, and the values are either the configuration arrays for creating the [[AssetBundle]] + * objects or the corresponding asset bundle instances. For example, the following code disables + * the bootstrap css file used by Bootstrap widgets (because you want to use your own styles): + * + * ~~~ + * [ + * 'yii\bootstrap\BootstrapAsset' => [ + * 'css' => [], + * ], + * ] + * ~~~ */ public $bundles = []; /**