Log message #3930260

# At Username Text
# 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
# Sep 9th 2016, 10:29 GuillaumeP au lieu de localhost
# Sep 9th 2016, 10:29 GuillaumeP si tu le peux essaie sur le web
# Sep 9th 2016, 10:25 Anju Ca ne change rien :(
# Sep 9th 2016, 10:23 Anju ok
# Sep 9th 2016, 10:23 GuillaumeP je teste sur le net pour ma part
# Sep 9th 2016, 10:22 GuillaumeP quitte ton navigateur, stoppe wamp, et relance tout
# Sep 9th 2016, 10:22 GuillaumeP j'ai un simple <? echo $this->Html->link('Download', ['action' => 'download']); ?>
# Sep 9th 2016, 10:20 Anju Peut-être mon lien de téléchargement qui est pas bon alors ?
# Sep 9th 2016, 10:19 Anju (
# Sep 9th 2016, 10:18 GuillaumeP lignes 49 à 53
# Sep 9th 2016, 10:18 GuillaumeP https://repl.it/DZmK/0
# Sep 9th 2016, 10:18 GuillaumeP ouaip
# Sep 9th 2016, 10:18 Anju Il te propose de le sauvegarder ?
# Sep 9th 2016, 10:16 GuillaumeP chez moi ça passe (fichier xlsx)
# Sep 9th 2016, 10:11 Anju Ok :/
# Sep 9th 2016, 10:10 GuillaumeP je fais un essai dans mon app
# Sep 9th 2016, 10:08 Anju Oui
# Sep 9th 2016, 10:08 GuillaumeP tu utilise WAMP ?