リクエストが完了した後にファイルをダウンロードしたい このメソッドを使用しています public function sendFile($id) {
$this->response->file($id, array('download' => true, 'name' => 'PostNet'));
//Return reponse object to prevent controller from trying to render a view
return $this->response;
}
しかし、 Call to undefined method CakeResponse::file() のようなエラーが発生します。クラスまたは CakeResponse を含める必要がありますか、それとも既に含まれていますか? ありがとう