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 = "131"
$documentData = array(
"Document" => array(
"id" => "131",
"installation_id" => "19",
"article_id" => "3532",
"text_id" => "5689",
"language_id" => "1",
"filename" => "826440b8-f93f-1032-a4f9-00163e1b2aa0.pdf",
"orgfilename" => "Anfrageformular Stern Onlinemarket.pdf",
"name" => "Anfrageformular",
"orderindex" => "2",
"divers_installations" => "0",
"create_date" => "2015-01-29 20:44:33",
"modified_date" => "2015-01-29 20:45:07"
),
"Text" => array(
"id" => "5689",
"language_id" => "1",
"text" => "",
"divers_installations" => "0",
"create_date" => "2015-01-29 20:45:07",
"modified_date" => "2015-01-29 20:45:07"
)
)
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