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 = "538"
$documentData = array(
"Document" => array(
"id" => "538",
"installation_id" => "19",
"article_id" => "3511",
"text_id" => "10118",
"language_id" => "1",
"filename" => "023d932f-7193-11e5-ac75-00163ef74aed.pdf",
"orgfilename" => "Flyer_STERN_Technologie.pdf",
"name" => "Stern Technologien",
"orderindex" => "1",
"divers_installations" => "0",
"create_date" => "2015-10-13 12:06:35",
"modified_date" => "0000-00-00 00:00:00"
),
"Text" => array(
"id" => null,
"language_id" => null,
"text" => null,
"divers_installations" => null,
"create_date" => null,
"modified_date" => null
)
)
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