直接上代码,聪明人都能看懂 ```php <?= DetailView::widget([ 'model' => $model, 'attributes' => [ 'id', 'name', 'password', [ 'label' => '时间', 'value' => date('Y-m-d H:i:s', $model->time), ], ], ]) ?> ```