You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1018 B
42 lines
1018 B
<?php
|
|
|
|
use yii\helpers\Html;
|
|
use blobt\grid\GridView;
|
|
|
|
//use yii\grid\GridView;
|
|
|
|
/* @var $this yii\web\View */
|
|
/* @var $searchModel common\models\CategorySearch */
|
|
/* @var $dataProvider yii\data\ActiveDataProvider */
|
|
|
|
$this->title = 'Categories';
|
|
$this->params['breadcrumbs'][] = $this->title;
|
|
?>
|
|
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<?php
|
|
echo GridView::widget([
|
|
'dataProvider' => $dataProvider,
|
|
'columns' => [
|
|
[
|
|
'attribute' => 'id',
|
|
'label' => 'Id',
|
|
"width" => "30px",
|
|
'align' => 'center'
|
|
],
|
|
[
|
|
'attribute' => 'cat_name',
|
|
'label' => '类名'
|
|
],
|
|
'icon',
|
|
'icon_type',
|
|
'description:ntext',
|
|
[
|
|
'class' => 'yii\grid\ActionColumn',
|
|
],
|
|
],
|
|
]);
|
|
?>
|
|
</div>
|
|
</div>
|