Require this bundle with composer:
$ composer require sidus/filter-bundle
<?php
/**
* app/AppKernel.php
*/
class AppKernel
{
public function registerBundles()
{
$bundles = [
// ...
new Sidus\FilterBundle\SidusFilterBundle(),
// ...
];
}
}
This step is strongly recommended although optional.
If you want to use the basic form templates, just add the filter's form template:
twig:
# ...
form_themes:
- '@SidusFilter/Form/fields.html.twig'
If you want to use Bootstrap:
# Twig Configuration
twig:
# ...
form_themes:
- 'bootstrap_4_layout.html.twig'
- '@SidusFilter/Form/bootstrap.fields.html.twig'