protected function sendCsvHeaders($filename) { header('Content-type: text/csv'); header("Content-Disposition: attachment; filename={$filename}"); header('Pragma: no-cache'); header('Expires: 0'); }