Commit 6fe63a21 by Carsten Brandt

view did not use the correct assetmanager

parent 78a8694e
......@@ -373,7 +373,7 @@ class View extends \yii\base\View
if (empty($depends)) {
$this->cssFiles[$key] = Html::cssFile($url, $options);
} else {
$am = Yii::$app->getAssetManager();
$am = $this->getAssetManager();
$am->bundles[$key] = new AssetBundle([
'css' => [Url::to($url)],
'cssOptions' => $options,
......@@ -435,7 +435,7 @@ class View extends \yii\base\View
unset($options['position']);
$this->jsFiles[$position][$key] = Html::jsFile($url, $options);
} else {
$am = Yii::$app->getAssetManager();
$am = $this->getAssetManager();
$am->bundles[$key] = new AssetBundle([
'js' => [Url::to($url)],
'jsOptions' => $options,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment