|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace App\Controller\Frontend; |
|
|
namespace App\Controller\Frontend; |
|
|
|
|
|
|
|
|
use App\Entity\Dream; |
|
|
|
|
|
use App\Entity\ProjectBoost; |
|
|
|
|
|
use App\Entity\ProjectInspiring; |
|
|
|
|
|
use App\Entity\Revolt; |
|
|
|
|
|
use App\Form\ContactForm; |
|
|
|
|
|
use App\Form\IndividualForm; |
|
|
|
|
|
use App\Form\SearchListForm; |
|
|
use App\Form\SearchListForm; |
|
|
use App\Repository\DreamStore; |
|
|
use App\Repository\DreamStore; |
|
|
use App\Repository\ProjectBoostStore; |
|
|
use App\Repository\ProjectBoostStore; |
|
|
|
|
|
|
|
|
use App\Repository\RevoltStore; |
|
|
use App\Repository\RevoltStore; |
|
|
use Doctrine\ORM\EntityManagerInterface; |
|
|
use Doctrine\ORM\EntityManagerInterface; |
|
|
use Knp\Component\Pager\PaginatorInterface; |
|
|
use Knp\Component\Pager\PaginatorInterface; |
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; |
|
|
|
|
|
use Symfony\Component\HttpFoundation\JsonResponse; |
|
|
|
|
|
use Symfony\Component\HttpFoundation\Response; |
|
|
|
|
|
use App\Entity\Site\Page; |
|
|
|
|
|
use Symfony\Component\Mailer\MailerInterface; |
|
|
|
|
|
use Symfony\Component\Mime\Email; |
|
|
|
|
|
|
|
|
use Lc\SovBundle\Generator\CsvGenerator; |
|
|
use Symfony\Component\HttpFoundation\Request; |
|
|
use Symfony\Component\HttpFoundation\Request; |
|
|
|
|
|
|
|
|
class CartoController extends DefaultController |
|
|
class CartoController extends DefaultController |
|
|
|
|
|
|
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function exportListCsv() |
|
|
|
|
|
{ |
|
|
|
|
|
$csv = new CsvGenerator(); |
|
|
|
|
|
$csv->enableConvertEncoding('ISO-8859-1'); |
|
|
|
|
|
$csv->setTitle('Export_Liste', true); |
|
|
|
|
|
|
|
|
|
|
|
$columns = [ |
|
|
|
|
|
'category' => 'Catégorie', |
|
|
|
|
|
'thematic' => 'Thématique', |
|
|
|
|
|
'subthematic' => 'Contribution', |
|
|
|
|
|
'territory' => 'Lieu' |
|
|
|
|
|
]; |
|
|
|
|
|
$csv->setColumns($columns); |
|
|
|
|
|
|
|
|
|
|
|
$data = [ |
|
|
|
|
|
|
|
|
|
|
|
]; |
|
|
|
|
|
$csv->row($data); |
|
|
|
|
|
|
|
|
|
|
|
return $csv->getReponse(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |