From 2333c3d535353e1ba5529ccaf9bb4316a85e99ea Mon Sep 17 00:00:00 2001 From: mark_story Date: Wed, 23 Apr 2014 22:15:10 -0400 Subject: [PATCH] Update docs for file(). Mention that relative paths will be prepended with APP. Refs #3370 --- lib/Cake/Network/CakeResponse.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Cake/Network/CakeResponse.php b/lib/Cake/Network/CakeResponse.php index 3ed93bcbd..bb57265e2 100644 --- a/lib/Cake/Network/CakeResponse.php +++ b/lib/Cake/Network/CakeResponse.php @@ -1247,7 +1247,8 @@ class CakeResponse { * - name: Alternate download name * - download: If `true` sets download header and forces file to be downloaded rather than displayed in browser * - * @param string $path Path to file + * @param string $path Path to file. If the path is not an absolute path that resolves + * to a file, `APP` will be prepended to the path. * @param array $options Options See above. * @return void * @throws NotFoundException