Example #1
0
 public function afterBootstrap()
 {
     parent::beforeBootstrap();
     \Yii::$app->setTimeZone(\Yii::$app->get("config")->get("app.timezone", \Yii::$app->getTimeZone()));
     \Yii::$app->language = \Yii::$app->get("config")->get("app.language") ?: \Yii::$app->language;
     \Yii::$app->name = \Yii::$app->get("config")->get("app.name") ?: \Yii::$app->name;
     $this->initCoreHooks();
     $this->initControllerMap();
     $this->initTheme();
     $this->initUserModule();
 }
Example #2
0
 public function beforeBootstrap()
 {
     parent::beforeBootstrap();
     Util::setComponent("appUrlManager", ["class" => '\\yii\\web\\UrlManager', "scriptUrl" => \Yii::$app->getRequest()->getBaseUrl() . '/index.php']);
 }