File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ class FooController extends AbstractController
61
61
62
62
``` twig
63
63
{# this will display your form. Use '_pugx_filter_b4.html.twig' or '_pugx_filter_b5.html.twig' for Bootstrap 4 / 5 #}
64
- {% include '_pugx_filter.html.twig' with {name: 'foo'} % }
64
+ {{ include( '_pugx_filter.html.twig' with {name: 'foo'}) } }
65
65
66
66
{% for foo in foos %}
67
67
{# here you can display your list of filtered items, as long as you did your homework #}
@@ -108,7 +108,7 @@ Example of template:
108
108
{% from '_pugx_sort.html.twig' import sort -%}
109
109
110
110
{% block body %}
111
- {% include '_pugx_filter.html.twig' with {name: 'foo'} % }
111
+ {{ include( '_pugx_filter.html.twig' with {name: 'foo'}) } }
112
112
<table class="table">
113
113
<thead>
114
114
<tr>
Original file line number Diff line number Diff line change 4
4
5
5
use Symfony \Component \Config \FileLocator ;
6
6
use Symfony \Component \DependencyInjection \ContainerBuilder ;
7
+ use Symfony \Component \DependencyInjection \Extension \Extension ;
7
8
use Symfony \Component \DependencyInjection \Extension \PrependExtensionInterface ;
8
9
use Symfony \Component \DependencyInjection \Loader ;
9
- use Symfony \Component \HttpKernel \DependencyInjection \Extension ;
10
10
11
11
final class FilterExtension extends Extension implements PrependExtensionInterface
12
12
{
13
- /**
14
- * @param array<string, mixed> $configs
15
- */
16
13
public function load (array $ configs , ContainerBuilder $ container ): void
17
14
{
18
15
$ loader = new Loader \XmlFileLoader ($ container , new FileLocator (__DIR__ .'/../../config ' ));
You can’t perform that action at this time.
0 commit comments