|
- <?php
- /**
- * @link http://www.yiiframework.com/
- * @copyright Copyright (c) 2008 Yii Software LLC
- * @license http://www.yiiframework.com/license/
- */
-
- namespace common\components;
-
- use yii\web\AssetBundle;
- use yii ;
-
- /**
- * @author Qiang Xue <qiang.xue@gmail.com>
- * @since 2.0
- */
- class MyAssetBundle extends AssetBundle
- {
- public $sourcePath = '@app/web/' ;
-
- public function addAsset($type, $path)
- {
- $this->$type[] = $path.'?v='.filemtime(Yii::getAlias($this->sourcePath.'/'.$path)) ;
- }
- }
|