title = 'Колонки проектов'; $this->params['breadcrumbs'][] = $this->title; ?>
render('_search', ['model' => $searchModel]); ?>

'btn btn-success']) ?>

$dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], // 'id', 'title', [ 'attribute' => 'project_id', 'value' => function(\common\models\ProjectColumn $model){ return $model->project->name ?? 'Не задано'; } ], 'created_at', 'updated_at', [ 'attribute' => 'status', 'value' => function (\common\models\ProjectColumn $model) { return \common\models\ProjectColumn::getStatus()[$model->status] ?? 'Не задано'; } ], ['class' => 'yii\grid\ActionColumn'], ], ]); ?>