PHP code example of whyte624 / sonata-admin-extra-export-bundle

1. Go to this page and download the library: Download whyte624/sonata-admin-extra-export-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

whyte624 / sonata-admin-extra-export-bundle example snippets


// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        //...
        new Whyte624\SonataAdminExtraExportBundle\Whyte624SonataAdminExtraExportBundle(),
        new Knp\Bundle\SnappyBundle\KnpSnappyBundle(),
        //...

//src/Acme/AcmeBundle/Admin/MyAdmin.php
use Sonata\AdminBundle\Admin\Admin;
use Whyte624\SonataAdminExtraExportBundle\Admin\AdminExtraExportTrait;

class MyAdmin extends Admin
{
    //...
    use AdminExtraExportTrait;
    //...

//src/Acme/AcmeBundle/Controller/MyCRUDController.php
use Sonata\AdminBundle\Controller\CRUDController;
use Whyte624\SonataAdminExtraExportBundle\Controller\CRUDControllerExtraExportTrait;

class MyCRUDController extends CRUDController
{
    //...
    use CRUDControllerExtraExportTrait;
    //...