<?php
use yii\helpers\Html;
use yii\widgets\Pjax;
?>
<?php Pjax::begin(); ?>
<?= Html::a("Обновить", ['/time'], ['class' => 'btn btn-lg btn-primary']);?>
<h1>Сейчас: <?= $time ?></h1>
<?php Pjax::end(); ?>
public function actionTime()
{
return $this->render('auto', ['time' => date('H:i:s')]);
}
<?php Pjax::begin(); ?>
<?= $this->render('auto', ['time' => date('H:i:s')]) ?>
<?php Pjax::end(); ?>