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