CakePHPでサーバのデータをダウンロードさせる手法

photo by koyhoge headerに情報を詰めて、返してあげればおkです。 // ファイルパス $downLoadFile = $filePath . $fileName; // ヘッダーに情報をまとめる $this->response->header(array( // ダウンロードさせる 'Content-Type: application/octet-stream', // よくわかりまてん 'Content-Disposition: attachment; fil…