| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function init() |
||
| 26 | { |
||
| 27 | parent::init(); |
||
| 28 | $min = YII_ENV_DEV ? '' : '.min'; |
||
| 29 | $this->css = ['css/bootstrap' . $min . '.css']; |
||
| 30 | $this->js = ['js/bootstrap' . $min . '.js']; |
||
| 31 | |||
| 32 | // Подключаем свои файлы Bootstrap |
||
| 33 | $assetManager = Yii::$app->assetManager; |
||
| 34 | $assetManager->bundles[YiiBootstrapAsset::class] = [ |
||
| 35 | 'sourcePath' => $this->sourcePath, |
||
| 36 | 'css' => [$this->css] |
||
| 37 | ]; |
||
| 38 | $assetManager->bundles[YiiBootstrapPluginAsset::class] = [ |
||
| 39 | 'sourcePath' => $this->sourcePath, |
||
| 40 | 'js' => [$this->js] |
||
| 41 | ]; |
||
| 48 |