Section export

Symfony 4 / Sonata: Create a CSV export page

Written by on 02/04/2020
Category:   PHP, symfony, Sonata
Tags:   sonata, export, csv, symfony
The default interfaces of Sonata are CRUDs. This is incredibly practical (otherwise, we wouldn't use it). But an administration is not only composed of CRUDs. Here we will see how to create a simple data export page, by removing the default views of the interfaces, and creating our own to manage our export button. 1 – Adding the export library composer require sonata-project/exporter We then need to add a configuration file for our exporter. #config/packag...