コード例 #1
0
ファイル: GiiModule.php プロジェクト: Liv1020/cms
 public function init()
 {
     parent::init();
     if (\Yii::$app->cms->giiEnabled == Cms::BOOL_N) {
         $this->allowedIPs = [""];
     } else {
         //TODO:add merge settings
         $this->allowedIPs = explode(",", \Yii::$app->cms->giiAllowedIPs);
     }
     $class = new \ReflectionClass(\yii\gii\Module::className());
     $dir = dirname($class->getFileName());
     $this->setBasePath($dir);
 }
コード例 #2
0
ファイル: Module.php プロジェクト: humandevice/hd-gii
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->setBasePath('@vendor/yiisoft/yii2-gii');
 }
コード例 #3
0
ファイル: Module.php プロジェクト: artkost/yii2-starter-kit
 public function init()
 {
     $this->controllerNamespace = 'yii\\gii\\controllers';
     parent::init();
 }
コード例 #4
0
ファイル: Module.php プロジェクト: rocketyang/hasscms-app
 public function init()
 {
     parent::init();
 }