From 452bd8e5e38dc04d72bead6f91a020585c55e4e7 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Sun, 16 Jun 2013 18:52:56 +0200 Subject: [PATCH] Changed existing code to match the changes regarding response --- controllers/SiteController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/SiteController.php b/controllers/SiteController.php index d79b728..670e05e 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 Yii::$app->response->redirect(array('site/index')); + return $this->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 Yii::$app->response->redirect(array('site/index')); + return $this->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 Yii::$app->response->refresh(); + return $this->response->refresh(); } else { return $this->render('contact', array( 'model' => $model,