PHP code example of fedale / gridview-bundle

1. Go to this page and download the library: Download fedale/gridview-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/ */

    

fedale / gridview-bundle example snippets


$columns = [
    'id',
    'code',
    'username',
];

$dataProvider = [
    'model' => Customer::class,
];

$grid = $this->createGridviewBuilder()
    ->setDataProvider($dataProvider)
    ->setColumns($columns)
    ->renderGridview();

return $grid->renderGrid(
    '@FedaleGridview/gridview/index.html.twig'
);