Code |
Context header( 'Content-Type:' );
header('Content-Disposition: attachment; filename="'.$documentData['Document']['orgfilename'].'"');
readfile(WWW_ROOT . DS . 'files' . DS . $this->Session->read('InstallationFilesFolder') . DS . $documentData['Document']['filename']);
$document_id = "540"
$documentData = array(
"Document" => array(
"id" => "540",
"installation_id" => "19",
"article_id" => "3511",
"text_id" => "10119",
"language_id" => "1",
"filename" => "2b356b82-7192-11e5-ac75-00163ef74aed.pdf",
"orgfilename" => "Flyer_STERN_Bauzäune Flex Rent 15.pdf",
"name" => "Stern Flex Rent",
"orderindex" => "2",
"divers_installations" => "0",
"create_date" => "2015-10-13 12:07:10",
"modified_date" => "0000-00-00 00:00:00"
),
"Text" => array(
"id" => "10119",
"language_id" => "1",
"text" => "Beschreibung",
"divers_installations" => "0",
"create_date" => "2015-10-13 12:07:10",
"modified_date" => "2015-10-13 12:13:11"
)
)
readfile - [internal], line ??
DocumentsController::downloadId() - APP/controllers/documents_controller.php, line 76
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 86