控制器中的action代码:
$file = PATH_APP.DIRECTORY_SEPARATOR.'schedule.csv';
$csvHandler = fopen($file, 'w');
.............
...........
...........(中间代码省略)
foreach ($processResults as $line) {
  fputcsv($csvHandler, explode(',', $line));
}
fclose($csvHandler);header("Content-type: text/csv; charset=gb2312");
header("Content-Type: application/force-download");
header("Content-Disposition: attachment; filename=".date('Y-m-d').".csv");
header('Expires:0');
header('Pragma:public');
@readfile($file);
exit;为什么始终无法下载?   header头也设置了。。就是不提示下载。请问怎么回事?
csv