title = '政策列表'; $this->params['breadcrumbs'][] = $this->title; ?> beginBlock('content-header'); ?> title . ' ' . Html::a(Yii::t('common', '新增政策'), ['create'], ['class' => 'btn btn-success']) ?> endBlock(); ?> render('_search', ['model' => $searchModel, 'cengciList' => $cengciList]); ?>
$dataProvider, 'columns' => [ 'id', 'title', [ 'attribute' => 'type', 'value' => function ($model) { /* @var $model \common\models\Policy */ return $model->getTypeText(); }, ], [ 'attribute' => 'estate', 'value' => function ($model) { /* @var $model \common\models\Policy */ if ($model->estate) { return \common\enums\PolicyEnum::$list[$model->estate]; } else { return ''; } }, ], 'cengci', 'author', [ 'class' => 'backend\widgets\grid\PositionColumn', 'attribute' => 'sort' ], 'created_at:datetime', ['class' => 'common\helpers\DiyActionColumn'], ], ]); ?>