|
- <?php
- /**
- * @link http://www.yiiframework.com/
- * @copyright Copyright (c) 2008 Yii Software LLC
- * @license http://www.yiiframework.com/license/
- */
-
- namespace common\assets;
-
- use yii\web\AssetBundle;
- use yii ;
-
- /**
- * @author Qiang Xue <qiang.xue@gmail.com>
- * @since 2.0
- */
- class CommonAsset extends \common\components\MyAssetBundle
- {
- public $sourcePath = '@common/web/' ;
- public $css = [];
- public $js = [];
- public $depends = [
- 'yii\bootstrap\BootstrapAsset',
- 'yii\web\YiiAsset',
- ];
-
- public function __construct() {
- parent::__construct() ;
-
- // css
- $this->addAsset('css','bootstrap/css/bootstrap.min.css') ;
- $this->addAsset('css','bootstrap/css/bootstrap-theme.min.css');
- $this->addAsset('css','js/jquery-ui-1.11.4.custom/jquery-ui.min.css');
- $this->addAsset('css','js/jquery-ui-1.11.4.custom/jquery-ui.theme.css');
- $this->addAsset('css','css/screen.css') ;
-
- // js
- $this->addAsset('js','js/jquery-ui-1.11.4.custom/jquery-ui.min.js');
- }
- }
|