Bonjour, je souhaites downloade un ficher csv généré avant. Sur ZF1 j'utilisais :
header('Content-Type:application/vnd.ms-excel');
header('Content-Disposition: attachment; filename=statistique.csv');

readfile(APPLICATION_PATH.'/../../data/statistique.csv');

fclose($file);
unlink(APPLICATION_PATH.'/../../data/statistique.csv');
exit;


Ca fonctionnait bien sut ZF2 j'ai tout essayé sa les $responses... mon fichier csv existe bien mais il n'est jamais télécharger ....

Merci d'avance cDLT