I want to make private dropdownlist values ββin the Gridview widgets of the YII2 structure. I now have the code:
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'id',
'title',
'statusId',
'categoryId',
['class' => 'yii\grid\ActionColumn'],
],
]); ?>
and statudId must be one of three possible values. (1-open, 2-stroke, 3-closed)
laury source
share