From 37b579fad68adda7bff3afda649eaed5a091a60d Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Sun, 16 Jun 2013 19:45:58 -0400 Subject: [PATCH] Revert "Merge pull request #548 from cebe/action-response" This reverts commit 9d7597d61a51ae7030b667f740c2a97471cf7f6e, reversing changes made to 6b6390f72b6a6010cfbe614aab236a90d10b1a00. --- controllers/SiteController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/SiteController.php b/controllers/SiteController.php index 670e05e..d79b728 100644 --- a/controllers/SiteController.php +++ b/controllers/SiteController.php @@ -27,7 +27,7 @@ class SiteController extends Controller { $model = new LoginForm(); if ($this->populate($_POST, $model) && $model->login()) { - return $this->response->redirect(array('site/index')); + return Yii::$app->response->redirect(array('site/index')); } else { return $this->render('login', array( 'model' => $model, @@ -38,7 +38,7 @@ class SiteController extends Controller public function actionLogout() { Yii::$app->user->logout(); - return $this->response->redirect(array('site/index')); + return Yii::$app->response->redirect(array('site/index')); } public function actionContact() @@ -46,7 +46,7 @@ class SiteController extends Controller $model = new ContactForm; if ($this->populate($_POST, $model) && $model->contact(Yii::$app->params['adminEmail'])) { Yii::$app->session->setFlash('contactFormSubmitted'); - return $this->response->refresh(); + return Yii::$app->response->refresh(); } else { return $this->render('contact', array( 'model' => $model,