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.

AppAsset.php 652B

1234567891011121314151617181920212223242526272829303132333435
  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 frontend\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 AppAsset extends \common\components\MyAssetBundle
  15. {
  16. public $basePath = '@webroot';
  17. public $baseUrl = '@web';
  18. public $css = [];
  19. public $js = [];
  20. public $depends = [];
  21. public function __construct() {
  22. parent::__construct() ;
  23. // css
  24. $this->addAsset('css','css/screen.css');
  25. // js
  26. }
  27. }