<?= ListView::widget([
'dataProvider' => $dataProvider,
'itemOptions' => ['class' => 'item'],
'itemView' => function ($model, $key, $index, $widget) {
$newModel = array_filter($model, function($obj){
if($obj->post_author == 'vasia')
return true;
});
return $this->render('_list', ['model' => $newModel]);
},
]) ?>