Pārlūkot izejas kodu

[Backend] Export comptable

feature/tableau_edition_avancee
Fab pirms 4 gadiem
vecāks
revīzija
5f4fd8b4d4
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      ShopBundle/Services/CsvGenerator.php

+ 2
- 2
ShopBundle/Services/CsvGenerator.php Parādīt failu

@@ -37,7 +37,7 @@ class CsvGenerator
$this->titleDocument = 'csv_file';
$this->convertEncoding = false ;
$this->fromEncoding = 'UTF-8' ;
$this->toEncoding = 'UTF-8' ;
$this->toEncoding = 'ISO-8859-1' ;
$this->delimiter = ';' ;
}

@@ -132,7 +132,7 @@ class CsvGenerator
$response = new StreamedResponse(function () {
$this->createCsv('php://output');
});
$response->headers->set('Content-Encoding', 'UTF-8');
$response->headers->set('Content-Encoding', $this->toEncoding);
$response->headers->set('Content-Type', 'application/force-download');
$response->headers->set('Content-Disposition', 'attachment; filename="'.$this->titleDocument.'.csv"');
return $response;

Notiek ielāde…
Atcelt
Saglabāt