コード例 #1
0
ファイル: SettingsForm.php プロジェクト: yujin1st/core
 public function attributes()
 {
     $attributes = [];
     foreach ($this->module->getEditableParams() as $key => $value) {
         if (is_array($value)) {
             $attributes[] = $key;
         } else {
             $attributes[] = $value;
         }
     }
     return $attributes;
 }
コード例 #2
0
ファイル: Module.php プロジェクト: yujin1st/core
 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);
 }
コード例 #3
0
ファイル: Module.php プロジェクト: yujin1st/core
 /**
  * @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');
 }
コード例 #4
0
ファイル: Module.php プロジェクト: yujin1st/core
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->controllerNamespace = 'yujin1st\\core\\modules\\mmanager\\controllers\\' . $this->webEnd;
     $this->setViewPath('@yujin1st/core/modules/mmanager/views/' . $this->webEnd);
 }