According to this page documentatation, the following code should work fine:
<div class="paginator">
<strong>pagina</strong>
<!-- Loop here -->
<a class="current "href="#">1</a>
<!-- End loop -->
<!-- This tag is only an example: --><a href="#">2</a>
{% include 'pagination.html.twig' with {
currentFilters: { myFilter: filtervariables },
currentPage: page,
paginationPath: "myroute",
lastPage: totalPages,
showAlwaysFirstAndLast: true
} only %}
</div>
However it returns:
Unable to find template "pagination.html.twig" in something.html.twig at line (number).
The page is in the same folder as the pagination.html.twig
so I can't seem to understand what's happening. Is there anyone that can explain me what is happening?
Thanks in advance.