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 790B

1234567891011121314151617181920212223242526272829303132333435363738
  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. 'yii\bootstrap\BootstrapPluginAsset',
  22. ];
  23. public function __construct() {
  24. parent::__construct() ;
  25. // css
  26. $this->addAsset('css','css/screen.css');
  27. // js
  28. $this->addAsset('js','js/frontend.js');
  29. $this->addAsset('js','js/boulange.js');
  30. }
  31. }