Browse Source

using external bootstrap assets.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
4cd994a1df
  1. 2
      extensions/bootstrap/BootstrapAsset.php
  2. 2
      extensions/bootstrap/BootstrapPluginAsset.php
  3. 2
      extensions/bootstrap/BootstrapThemeAsset.php
  4. 3
      extensions/bootstrap/composer.json

2
extensions/bootstrap/BootstrapAsset.php

@ -15,7 +15,7 @@ use yii\web\AssetBundle;
*/
class BootstrapAsset extends AssetBundle
{
public $sourcePath = '@yii/bootstrap/assets';
public $sourcePath = '@vendor/twitter/bootstrap/dist';
public $css = [
'css/bootstrap.css',
];

2
extensions/bootstrap/BootstrapPluginAsset.php

@ -16,7 +16,7 @@ use yii\web\AssetBundle;
*/
class BootstrapPluginAsset extends AssetBundle
{
public $sourcePath = '@yii/bootstrap/assets';
public $sourcePath = '@vendor/twitter/bootstrap/dist';
public $js = [
'js/bootstrap.js',
];

2
extensions/bootstrap/BootstrapThemeAsset.php

@ -17,7 +17,7 @@ use yii\web\AssetBundle;
*/
class BootstrapThemeAsset extends AssetBundle
{
public $sourcePath = '@yii/bootstrap/assets';
public $sourcePath = '@vendor/twitter/bootstrap/dist';
public $css = [
'css/bootstrap-theme.css',
];

3
extensions/bootstrap/composer.json

@ -13,7 +13,8 @@
},
"minimum-stability": "dev",
"require": {
"yiisoft/yii2": "*"
"yiisoft/yii2": "*",
"twitter/bootstrap": "3.0.*"
},
"autoload": {
"psr-0": { "yii\\bootstrap\\": "" }

Loading…
Cancel
Save