public function init() { parent::init(); $this->registerTranslations(); if ($this->theme) { Yii::$app->view->theme = new \yii\base\Theme($this->theme); } }