public function attributes() { $attributes = []; foreach ($this->module->getEditableParams() as $key => $value) { if (is_array($value)) { $attributes[] = $key; } else { $attributes[] = $value; } } return $attributes; }
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); }