Closed agaplus closed 7 years ago
Whats $listData
?
$centri = Centro::find()->all(); $listDatai=ArrayHelper::map($centri,'id','nome');
I have to refactor this application for the new http://yiiwheels.com site. Will handle this issue when doing it.
Thanks.
Nevertheless, how are you going to preselect multiple? Is the attribute an array? have you seen this: https://github.com/2amigos/yii2-multi-select-widget/issues/1#issuecomment-47092009
Preselect with 'model' and 'attribute' instead of 'name' and 'value'' works if the preselect is only one. Or maybe i not pass a valid data...
how can I do?