mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 05:45:33 +08:00
Merge pull request #1465 from Bethrezen/patch-3
Replace request with response in code example
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user