public function init() { parent::init(); Yii::$app->set('settings', Settings::className()); $this->controllerNamespace = 'yujin1st\\core\\modules\\settings\\controllers\\' . $this->webEnd; $this->setViewPath('@yujin1st/core/modules/settings/views/' . $this->webEnd); }
/** * @inheritdoc */ public function init() { parent::init(); if ($this->setGlobalLayout) { Yii::$app->setLayoutPath($this->globalLayoutPath); Yii::$app->layout = $this->globalLayout; } if ($this->webEnd == 'backend') { Yii::$app->errorHandler->errorAction = '/backend/site/error'; } $this->controllerNamespace = 'yujin1st\\core\\modules\\backend\\controllers'; $this->setViewPath('@yujin1st/core/modules/backend/views'); }
/** * @inheritdoc */ public function init() { parent::init(); $this->controllerNamespace = 'yujin1st\\core\\modules\\mmanager\\controllers\\' . $this->webEnd; $this->setViewPath('@yujin1st/core/modules/mmanager/views/' . $this->webEnd); }