Log message #3930278

# At Username Text
# Sep 9th 2016, 10:51 GuillaumeP les fichiers pardons
# Sep 9th 2016, 10:51 GuillaumeP coche : Toujours demander où enregistrer les dossiers
# Sep 9th 2016, 10:51 GuillaumeP dans les options avancées
# Sep 9th 2016, 10:50 GuillaumeP je parie que tu as dit à chrome de sauvegarder automatiquement dans un dossier
# Sep 9th 2016, 10:50 Anju Chrome
# Sep 9th 2016, 10:50 GuillaumeP bon c'est quoi ton navigateur
# Sep 9th 2016, 10:49 Anju Dans Téléchargements, ce qui est déjà mieux
# Sep 9th 2016, 10:49 Anju Non, mais il l'a téléchargé
# Sep 9th 2016, 10:49 GuillaumeP il t'a propose de choisir l'emplacement ?
# Sep 9th 2016, 10:49 Anju Dans le dossier Téléchargements !
# Sep 9th 2016, 10:49 Anju Il l'a téléchargé :D
# Sep 9th 2016, 10:49 Anju Ah !
# Sep 9th 2016, 10:48 GuillaumeP http://localhost/mon-controller/download
# Sep 9th 2016, 10:48 Anju Je teste
# Sep 9th 2016, 10:48 Anju Cool c'est exactement ce que j'ai fais xD
# Sep 9th 2016, 10:48 GuillaumeP }
# Sep 9th 2016, 10:48 GuillaumeP return $this->response;
# Sep 9th 2016, 10:48 GuillaumeP );
# Sep 9th 2016, 10:48 GuillaumeP ['download' => true]
# Sep 9th 2016, 10:48 GuillaumeP TMP . 'test.txt',
# Sep 9th 2016, 10:48 GuillaumeP $this->response->file(
# Sep 9th 2016, 10:48 GuillaumeP {
# Sep 9th 2016, 10:48 GuillaumeP public function download()
# Sep 9th 2016, 10:47 GuillaumeP ensuite dans ton controller créées une nouvelle fonction download() qui ressemble à ceci
# Sep 9th 2016, 10:46 GuillaumeP mets 3 conneries dedans
# Sep 9th 2016, 10:46 GuillaumeP donne lui un nom court genre test.txt
# Sep 9th 2016, 10:46 GuillaumeP tu vas donc créer un fichier txt le répertoire tmp de ton CAKE3
# Sep 9th 2016, 10:46 GuillaumeP l'idée c'est de procéder par élimination
# Sep 9th 2016, 10:45 Anju Ah je viens de comprendre
# Sep 9th 2016, 10:45 Anju Gné ? xD
# Sep 9th 2016, 10:43 GuillaumeP fais un copier coller de tafonction dans pastebin que je vérifie
# Sep 9th 2016, 10:43 GuillaumeP puis balance avec response->file comme dans mon exemple
# Sep 9th 2016, 10:43 GuillaumeP et juste une fonction download qui va chercher ce fichier
# Sep 9th 2016, 10:42 GuillaumeP fais un essai avec un fichier texte créé manuellement
# Sep 9th 2016, 10:41 Anju T'en penses quoi GuillaumeP ?
# Sep 9th 2016, 10:41 Anju A la fin il dit qu'il faut ajouter un truc dans .htaccess pour télécharger
# Sep 9th 2016, 10:41 Anju Je m'étais inspirée de ça pour mon code
# Sep 9th 2016, 10:41 Anju https://openclassrooms.com/forum/sujet/export-tableau-php-dans-un-fichier-csv
# Sep 9th 2016, 10:35 Anju Sur le net ça change rien non plus
# Sep 9th 2016, 10:29 GuillaumeP ou 127.0.0.1
# Sep 9th 2016, 10:29 Anju Je vais essayer