Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Viewing all articles
Browse latest Browse all 3924

Knp_paginator template issue

$
0
0

I have a small issue on symfony 4.12 with knp_paginator bundle I want to apply a template for it I create a knp_paginator.yaml in config/packages/test because it didn't generate it

knp_paginator: page_range: 5
page_name: page
sort_field_name: sort
sort_direction_name: direction
distinct: true
filter_field_name: filterField filter_value_name: filterValue
template: pagination: '@KnpPaginator/Pagination/twitter_bootstrap_v3_pagination.html.twig' sortable: '@KnpPaginator/Pagination/twitter_bootstrap_v3_sortable_link.html.twig'

and in my repository

 $query=$query->getQuery();
    return $this->paginator->paginate(
        $query,
        1,
        2
    );

I tried all things but the only result I obtain is the simple paginator : <<<12>>>


Viewing all articles
Browse latest Browse all 3924

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>