/ Published in: PHP

Put it in the columns array
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
[ 'attribute' => 'attribute_name', 'value' => 'attribute_value', 'filter' => Html::activeDropDownList($searchModel, 'attribute_name', ArrayHelper::map(ModelName::find()->asArray()->all(), 'ID', 'Name'),['class'=>'form-control','prompt' => 'Select Category']), ],
Comments
