- <?php
- /**
- * @link http://www.yiiframework.com/
- * @copyright Copyright (c) 2008 Yii Software LLC
- * @license http://www.yiiframework.com/license/
- */
-
- namespace frontend\assets;
-
- use yii\web\AssetBundle;
- use yii ;
-
- /**
- * @author Qiang Xue <qiang.xue@gmail.com>
- * @since 2.0
- */
-
- class AppAsset extends \common\components\MyAssetBundle
- {
- public $basePath = '@webroot';
- public $baseUrl = '@web';
- public $css = [];
- public $js = [];
- public $depends = [];
-
- public function __construct() {
- parent::__construct() ;
-
- // css
- $this->addAsset('css','css/screen.css');
-
- // js
- $this->addAsset('js','js/frontend.js');
- }
- }
|