/** * @inheritDoc */ public function init() { parent::init(); $this->setResponseData('themeUrl', Yii::getAlias('@web') . '/themes/' . Yii::$app->view->theme->template); }