From 45778a4bd7037e2797f29bc80d1c09cedbefffeb Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Fri, 27 Sep 2013 20:36:47 +0400 Subject: [PATCH] Added ->send() to redirect phpdoc example --- framework/yii/web/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/yii/web/Response.php b/framework/yii/web/Response.php index e6505fd..b353e7c 100644 --- a/framework/yii/web/Response.php +++ b/framework/yii/web/Response.php @@ -581,7 +581,7 @@ class Response extends \yii\base\Response * In a controller action you may use this method like this: * * ~~~ - * return Yii::$app->getResponse()->redirect($url); + * return Yii::$app->getResponse()->redirect($url)->send(); * ~~~ * * @param string|array $url the URL to be redirected to. This can be in one of the following formats: