basePath . '/install.lock')) { throw new ForbiddenHttpException('禁止访问。'); return; } if (\Yii::$app->request->isAjax) { if (\Yii::$app->request->isPost) { $form = new InstallForm(); $form->attributes = \Yii::$app->request->post(); return $form->install(); } } else { return $this->render('index'); } } }