basePath . '/install.lock.php'; if (!file_exists($install_lock_file)) { $this->redirect(\Yii::$app->urlManager->createUrl(['install']))->send(); } else { $this->redirect(\Yii::$app->urlManager->createUrl(['admin']))->send(); } } public function actionTest() { $tpl = new PtNoticeSender(null,1); $tpl->sendSuccessNotice(102); } }