Skip to content

Commit

Permalink
Fix jui and bs load order
Browse files Browse the repository at this point in the history
Fixes #1
  • Loading branch information
keshikashviligio committed Jan 16, 2017
1 parent c13b7a6 commit 84bdd15
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions web/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,15 @@ public function init()
{
parent::init();
AssetBundle::register($this->getView());

}


public function beforeAction($action)
{
if(isset(\Yii::$app->assetManager->bundles['yii\bootstrap\BootstrapPluginAsset'])){
\Yii::$app->assetManager->bundles['yii\bootstrap\BootstrapPluginAsset']->depends[] = 'yii\jui\JuiAsset';
}
return parent::beforeAction($action);
}
}

0 comments on commit 84bdd15

Please sign in to comment.