In yii2 I have a dropdownlist:
<?= $form->field($model, 'Körperschaft')->dropDownList(['a' => 'Item A', 'b' => 'Item B', 'c' => 'Item C'])?>
How can I set 'Item B' as a default value?
I got it! The solutions is to write in the controller:
public function actionCreate()
{
$model->Körperschaft='b';