Code Context header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.basename($fileName));
$id = '25'
$file_id = '25'
$downloadfile = array(
'Notice' => array(
'id' => '25',
'title' => 'শেখ রাসেল দিবস 2023 উদযাপন ।',
'description' => '',
'attach_file' => 'files/news/1697449860_9392.docx',
'isactive' => '1',
'posted_date' => '1697432400',
'created' => '2023-10-16',
'modified' => '2023-10-16',
'order' => '0'
)
)
$path = null
$fileName = 'files/news/1697449860_9392.docx'
header - [internal], line ??
NoticesController::download() - APP/Controller/NoticesController.php, line 39
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 187
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 110