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

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