Hello everybody, i have problem with ActiveDropdownlist, i can not add more than one option
example:
<?php
echo Html::activeDropDownList($a, 'id', ArrayHelper::map(Lingue::find()->all(), 'id', 'nome'),
[ "multiple"=>"multiple", 'prompt'=>'Seleziona una o più lingue',"id"=>"multilingue", "class"=>"btn btn-neutral"]
)
?>
for every position "multiple" is in array, have not problem, but for "prompt", "id" and "class" there is problem.
example Not working class or id
<?php
echo Html::activeDropDownList($a, 'id', ArrayHelper::map(Lingue::find()->all(), 'id', 'nome'),
[ "class"=>"btn btn-neutral","id"=>"multilingue"]
)
?>
example working class
<?php
echo Html::activeDropDownList($a, 'id', ArrayHelper::map(Lingue::find()->all(), 'id', 'nome'),
[ "class"=>"btn btn-neutral"]
)
?>
which is the problem?