From 41d24ee9031012f500fbc0bbcda308f40590dcab Mon Sep 17 00:00:00 2001 From: Alexander Kozhevnikov Date: Mon, 9 Dec 2013 14:51:45 +0300 Subject: [PATCH] Replace request with response in code 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 1c0fb18..43e8f73 100644 --- a/framework/yii/web/Response.php +++ b/framework/yii/web/Response.php @@ -542,7 +542,7 @@ class Response extends \yii\base\Response * **Example** * * ~~~ - * Yii::$app->request->xSendFile('/home/user/Pictures/picture1.jpg'); + * Yii::$app->response->xSendFile('/home/user/Pictures/picture1.jpg'); * ~~~ * * @param string $filePath file name with full path