riverwaysoft / grid-bundle
Grid bundle
Installs: 17 303
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=7.1
- box/spout: ^2.7
- knplabs/knp-paginator-bundle: ^2.5
This package is not auto-updated.
Last update: 2021-08-23 09:29:21 UTC
README
Installation
Step 1: Download the Bundle
Install:
composer require --prefer-dist riverwaysoft/grid-bundle
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the app/AppKernel.php
file of your project:
<?php // app/AppKernel.php // ... class AppKernel extends Kernel { public function registerBundles() { $bundles = array( // ... new Riverway\Grid\RiverwayGridBundle(), ); // ... } // ... }
Configuration
There are no configuration yet : )
Usage
Controller:
$query = $this->getDoctrine()->getRepository('AppBundle:Order')->createQueryBuilder('o')->getQuery(); return $this->render('index.html.twig', [ 'query' => $query->getQuery(), ]);
Template:
{{ riverway_grid_render([
'id',
'name',
{'type.key': {'humanize': true, 'label': 'Type'}}
], query) }}