Example #1
0
 public function attributes()
 {
     $attributes = [];
     foreach ($this->module->getEditableParams() as $key => $value) {
         if (is_array($value)) {
             $attributes[] = $key;
         } else {
             $attributes[] = $value;
         }
     }
     return $attributes;
 }
Example #2
0
 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);
 }
Example #3
0
 /**
  * @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');
 }
Example #4
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->controllerNamespace = 'yujin1st\\core\\modules\\mmanager\\controllers\\' . $this->webEnd;
     $this->setViewPath('@yujin1st/core/modules/mmanager/views/' . $this->webEnd);
 }