$dataProvider = new ActiveDataProvider([
'query' => Article::find()->where(['status'=> 1]),
'pagination' => [
'pageSize' => 12,
],
]);
<?php
echo yii\widgets\ListView::widget([
'dataProvider' => $dataProvider,
'itemView' => '_item',
'layout' => "{items}\n{pager}",
]); ?>
jQuery(document).pjax("#refreshButton", "#pj_w0", {
"push": true,
"replace": false,
"timeout": 10000,
"scrollTo": false
});