CoreAsset.php 478 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace app\assets;
  3. use yii\web\AssetBundle;
  4. class CoreAsset extends AssetBundle
  5. {
  6. //资源文件的源文件位置
  7. public $sourcePath = '@app/static/core';
  8. //当前事例引入的文件
  9. public $css = [
  10. ];
  11. public $js = [
  12. ];
  13. //没有依赖
  14. public $depends = [
  15. ];
  16. static function getInitCls()
  17. {
  18. static $initCls = NULL;
  19. if(!isset($initCls)) $initCls = new CoreAsset();
  20. return $initCls;
  21. }
  22. }