Good day! I have this question:

There is a view where I display the ListView widget

<?= ListView::widget( [ 'dataProvider' => $dataProvider, 'itemView' => '_etc/item_list', ]); ?> 

The widget and the paginator appear below, I need the design so that the paginator is in a different place and therefore I use the following code:

 <?= \yii\widgets\LinkPager::widget([ 'pagination'=>$dataProvider->pagination, ]); 

Naturally, another paginator appears. Actually the question: how to remove the first paginator? Is it possible to display a ListView with some parameters so that the pagination menu is missing from the bottom of it?

    1 answer 1

    You can through the layout

     <?= ListView::widget( [ 'dataProvider' => $dataProvider, 'itemView' => '_etc/item_list', 'layout'=>"{summary}\n{items}", ]);?> 

    Either through the pager property, and specify your stub or implementation