Bonjour,
j'ai essayé l'autocomplete avec le bundle samson autocomplete mais j'ai comme erreur

Variable "highlight" does not exist in EcommerceBlogBundle:Default:list.html.twig at line 28
mon problème que highlight est un filtre j'ai essayé d'ajouter filter="highlight" mais c'est inutile.
voici le twig
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        {% block description %}
            <meta name="description" content="The Amazing Blog">
        {% endblock %}
        <title>{% block title %}{% endblock %}</title>
 
 
{% block stylesheets %}
{% stylesheets 
 
 
               '@EcommerceBlogBundle/Resources/public/css/autocomplete.css'
               '@EcommerceBlogBundle/Resources/public/css/bootstrap.min.css'
               '@EcommerceBlogBundle/Resources/public/css/select2.css'
 
                %}
<link rel="stylesheet" href="{{ asset_url }}" type="text/css" />
{% endstylesheets %}
{% endblock %}
    </head>
    <body>
 
 
            {{ form(imageSearchForm) }}
            {% if highlight %}
 
           {{ a.url | highlight }}
 
            {% else %}
 
           {{ a.url }}
           {% endif %}
 
         {{ form(imageSearchForm, {'action': path('obtao-article-ajout')}) }}
 
    {%  javascripts   
 
'@EcommerceBlogBundle/Resources/public/js/bootstrap.min.js'
'@EcommerceBlogBundle/Resources/public/js/autocomplete.min.js'
'@EcommerceBlogBundle/Resources/public/themes/js/jquery.js'
 
 %}
 
<script type="text/javascript" src="{{ asset_url }}"></script>
{% endjavascripts %}
 
    </body>
</html>