public function bootstrap($app) { $views = $this->getViews(); /** @var \core\theme\models\Theme $theme */ $themes = Kiwi::getTheme()->find()->where(['is_active' => 1, 'scope' => \Yii::$app->id])->orderBy('sort')->all(); foreach ($themes as $theme) { if (isset($views[$theme->key])) { $this->loadViewPathMap($views[$theme->key]); } } $this->loadViewPathMap($views['default']); }