您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

42 行
1.1KB

  1. <?php
  2. /**
  3. * @link http://www.yiiframework.com/
  4. * @copyright Copyright (c) 2008 Yii Software LLC
  5. * @license http://www.yiiframework.com/license/
  6. */
  7. namespace common\assets;
  8. use yii\web\AssetBundle;
  9. use yii ;
  10. /**
  11. * @author Qiang Xue <qiang.xue@gmail.com>
  12. * @since 2.0
  13. */
  14. class CommonAsset extends \common\components\MyAssetBundle
  15. {
  16. public $sourcePath = '@common/web/' ;
  17. public $css = [];
  18. public $js = [];
  19. public $depends = [
  20. 'yii\bootstrap\BootstrapAsset',
  21. 'yii\web\YiiAsset',
  22. ];
  23. public function __construct() {
  24. parent::__construct() ;
  25. // css
  26. $this->addAsset('css','bootstrap/css/bootstrap.min.css') ;
  27. $this->addAsset('css','bootstrap/css/bootstrap-theme.min.css');
  28. $this->addAsset('css','js/jquery-ui-1.11.4.custom/jquery-ui.min.css');
  29. $this->addAsset('css','js/jquery-ui-1.11.4.custom/jquery-ui.theme.css');
  30. $this->addAsset('css','css/screen.css') ;
  31. // js
  32. $this->addAsset('js','bootstrap/js/bootstrap.min.js');
  33. $this->addAsset('js','js/jquery-ui-1.11.4.custom/jquery-ui.min.js');
  34. }
  35. }