You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
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','js/jquery-ui-1.11.4.custom/jquery-ui.min.js');
  33. }
  34. }