<?php Pjax::begin(['id' => 'pjax-grid-view', 'timeout' => 60000]); ?>
<?php
$script = <<< JS
$(document).ready(function() {
$.pjax.reload({container: '#pjax-grid-view', timeout:false})
});
JS;
$this->registerJs($script);
?>
////все остальное
<?php Pjax::end(); ?>
<?php Pjax::begin([
'id' => 'list-messages',
'enablePushState' => false,
'formSelector' => false,
'linkSelector' => false,
]) ?>
<?= $this->render('_list', ['dataProvider' => $dataProvider, 'pages' => $pages,]) ?>
<?php Pjax::end() ?>
<?php $this->registerJs(<<<JS
function updateList() {
$.pjax.reload({container: '#list-messages'});
}
setInterval(updateList, 150000);
JS
); ?>