Commit 4cd994a1 by Qiang Xue

using external bootstrap assets.

parent 71268c9e
...@@ -15,7 +15,7 @@ use yii\web\AssetBundle; ...@@ -15,7 +15,7 @@ use yii\web\AssetBundle;
*/ */
class BootstrapAsset extends AssetBundle class BootstrapAsset extends AssetBundle
{ {
public $sourcePath = '@yii/bootstrap/assets'; public $sourcePath = '@vendor/twitter/bootstrap/dist';
public $css = [ public $css = [
'css/bootstrap.css', 'css/bootstrap.css',
]; ];
......
...@@ -16,7 +16,7 @@ use yii\web\AssetBundle; ...@@ -16,7 +16,7 @@ use yii\web\AssetBundle;
*/ */
class BootstrapPluginAsset extends AssetBundle class BootstrapPluginAsset extends AssetBundle
{ {
public $sourcePath = '@yii/bootstrap/assets'; public $sourcePath = '@vendor/twitter/bootstrap/dist';
public $js = [ public $js = [
'js/bootstrap.js', 'js/bootstrap.js',
]; ];
......
...@@ -17,7 +17,7 @@ use yii\web\AssetBundle; ...@@ -17,7 +17,7 @@ use yii\web\AssetBundle;
*/ */
class BootstrapThemeAsset extends AssetBundle class BootstrapThemeAsset extends AssetBundle
{ {
public $sourcePath = '@yii/bootstrap/assets'; public $sourcePath = '@vendor/twitter/bootstrap/dist';
public $css = [ public $css = [
'css/bootstrap-theme.css', 'css/bootstrap-theme.css',
]; ];
......
...@@ -13,7 +13,8 @@ ...@@ -13,7 +13,8 @@
}, },
"minimum-stability": "dev", "minimum-stability": "dev",
"require": { "require": {
"yiisoft/yii2": "*" "yiisoft/yii2": "*",
"twitter/bootstrap": "3.0.*"
}, },
"autoload": { "autoload": {
"psr-0": { "yii\\bootstrap\\": "" } "psr-0": { "yii\\bootstrap\\": "" }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment