title = $model->id; $this->params['breadcrumbs'][] = ['label' => 'Comments', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; \yii\web\YiiAsset::register($this); ?>
= Html::a('返回列表', ['index'], ['class' => 'btn btn-success']) ?>
= Html::a('返回列表', ['index'], ['class' => 'btn btn-success']) ?>
= DetailView::widget([ 'model' => $model, 'attributes' => [ 'id', 'user_id', [ 'attribute' => 'order_goods_id', 'value' => function ($model) { return $model->orderGoods->goods_name; }, 'label' => '商品名称' ], 'star', 'content:ntext', [ 'attribute' => 'status', 'value' => function ($model) { return Comment::$commentStatus[$model->status]; }, 'label' => '状态' ], 'updated_at:datetime', 'created_at:datetime', ], ]) ?>