title = "Category"; $this->params['breadcrumbs'][] = Yii::t('app', 'Category'); ?>
render('/widgets/_ibox-title') ?>
$dataProvider, 'columns' => [ [ 'class' => CheckboxColumn::className(), ], [ 'attribute' => 'id', ], [ 'attribute' => 'name', 'label' => Yii::t('app', 'Name'), 'format' => 'html', 'value' => function ($model, $key, $index, $column) { return $model['prefix_level_name']; } ], [ 'attribute' => 'alias', 'label' => Yii::t('app', 'Alias'), ], [ 'class' => SortColumn::className(), 'primaryKey' => function($model){ return ["id" => $model["id"]]; }, 'label' => Yii::t('app', 'Sort') ], [ 'class' => DateColumn::className(), 'label' => Yii::t('app', 'Created At'), 'attribute' => 'created_at', ], [ 'class' => DateColumn::className(), 'label' => Yii::t('app', 'Updated At'), 'attribute' => 'updated_at', ], [ 'class' => ActionColumn::className(), 'buttons' => [ 'create' => function ($url, $model, $key) { return Html::a(' ', Url::to([ 'create', 'parent_id' => $model['id'] ]), [ 'title' => Yii::t('app', 'Create'), 'data-pjax' => '0', 'class' => 'btn-sm J_menuItem', ]); } ], 'template' => '{create} {view-layer} {update} {delete}', ] ] ]) ?>