OKyJIucT
9/29/2015 - 8:26 PM

DetailView

DetailView

 <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'name',
            'token',
            'comment:ntext',
            [
                'label' => Yii::t('app', 'Created At'),
                'value' => date("d M Y, H:i", $model->created_at),
            ],
            [
                'label' => Yii::t('app', 'Updated At'),
                'value' => date("d M Y, H:i", $model->updated_at),
            ],
        ],
    ]) ?>