|
12345678910111213141516171819202122232425 |
- <?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)) ;
- }
- }
|