<?php \yii\widgets\Pjax::begin(); ?>
сюда фильтры можно вынести
<?= \yii\widgets\ListView::widget([
'dataProvider' => $provider,
'itemOptions' => ['class' => 'item'],
'summary'=>'',
'itemView' => function ($model, $key, $index, $widget) {
return $this->render('_item', ['model' => $model]);
},
]) ?>
<?php \yii\widgets\Pjax::end(); ?>
use yii\widgets\Pjax;
use yii\widgets\PjaxAsset;
PjaxAsset::register($this);
$this->registerJs(<<<JS
$(document).on('change', '#provider', function(e) {
$.pjax({
timeout: 4000,
url: $('#filter-form').attr('action'),
container: '#list-view',
fragment: '#list-view',
data: {provider: this.options[this.selectedIndex].value},
});
});
JS
, yii\web\View::POS_END);
<?=Html::beginForm(Url::current(), 'GET', ['id'=>'filter-form']);?>
<?=Html::activeDropDownList($model, 'provider', Provider::items(), ['id'=>'provider']); ?>
<?=Html::endForm(); ?>
<?php \yii\widgets\Pjax::begin(); ?>
<?= \yii\widgets\ListView::widget([.....]) ?>
<?php \yii\widgets\Pjax::end(); ?>