AdminAsset.php 565 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace app\modules\manager\assets;
  3. use yii\web\AssetBundle;
  4. use yii\web\View;
  5. class AdminAsset extends AssetBundle
  6. {
  7. public $sourcePath = '@app/web/components/admin';
  8. public $basePath = '@webroot/components/admin';
  9. public $baseUrl = '@web/components/admin';
  10. public $css = [
  11. 'css/style.css',
  12. ];
  13. public $js = [
  14. 'ckeditor/ckeditor.js',
  15. 'js/admin.js'
  16. ];
  17. public $depends = [
  18. 'yii\web\YiiAsset',
  19. 'yii\jui\JuiAsset'
  20. ];
  21. public $jsOptions = [
  22. 'position' => View::POS_HEAD
  23. ];
  24. }