title = $model->name; $this->params['breadcrumbs'][] = ['label' => '后台商品分类', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; \yii\web\YiiAsset::register($this); ?>
= Html::a('返回列表', ['index'], ['class' => 'btn btn-success']) ?>
= DetailView::widget([ 'model' => $model, 'attributes' => [ 'id', 'name', 'pid', 'goods_count', 'sort_order', 'icon_type', 'icon', [ 'attribute' => 'is_show', 'value' => function ($model) { return $model->is_show == \goods\models\ars\Category::IS_SHOW_DISPLAY ? '显示':'隐藏'; } ], 'created_at:datetime', 'updated_at:datetime', ], ]) ?>