diff --git a/controllers/SiteController.php b/controllers/SiteController.php index 67c3f50..13e07f3 100644 --- a/controllers/SiteController.php +++ b/controllers/SiteController.php @@ -63,66 +63,4 @@ class SiteController extends Controller { return $this->render('index'); } - - /** - * Login action. - * - * @return Response|string - */ - public function actionLogin() - { - if (!Yii::$app->user->isGuest) { - return $this->goHome(); - } - - $model = new LoginForm(); - if ($model->load(Yii::$app->request->post()) && $model->login()) { - return $this->goBack(); - } - - $model->password = ''; - return $this->render('login', [ - 'model' => $model, - ]); - } - - /** - * Logout action. - * - * @return Response - */ - public function actionLogout() - { - Yii::$app->user->logout(); - - return $this->goHome(); - } - - /** - * Displays contact page. - * - * @return Response|string - */ - public function actionContact() - { - $model = new ContactForm(); - if ($model->load(Yii::$app->request->post()) && $model->contact(Yii::$app->params['adminEmail'])) { - Yii::$app->session->setFlash('contactFormSubmitted'); - - return $this->refresh(); - } - return $this->render('contact', [ - 'model' => $model, - ]); - } - - /** - * Displays about page. - * - * @return string - */ - public function actionAbout() - { - return $this->render('about'); - } } diff --git a/views/site/about.php b/views/site/about.php deleted file mode 100644 index ea006ec..0000000 --- a/views/site/about.php +++ /dev/null @@ -1,18 +0,0 @@ -title = 'About'; -$this->params['breadcrumbs'][] = $this->title; -?> -
- This is the About page. You may modify the following file to customize its content: -
- -= __FILE__ ?>
-
- Note that if you turn on the Yii debugger, you should be able
- to view the mail message on the mail panel of the debugger.
- mailer->useFileTransport): ?>
- Because the application is in development mode, the email is not sent but saved as
- a file under = Yii::getAlias(Yii::$app->mailer->fileTransportPath) ?>
.
- Please configure the useFileTransport
property of the mail
- application component to be false to enable email sending.
-
-
- If you have business inquiries or other questions, please fill out the following form to contact us. - Thank you. -
- -You have successfully created your Yii-powered application.
+ ++ This page has most functionality: list, edit, add image, etc.. +
+ Go to page +Please fill out the following fields to login:
- -app\models\User::$users
.
-