here is code of dropdownlist.. but when I select multiple values it gives validation error "task must be string"
how to save multiple values (array)?
<?php echo $form->field($model, 'task')->widget(Select2::classname(), [
'data' => $companiesList,
'options' => ['placeholder' => 'Select company...','multiple' => true],
'pluginOptions' => ['allowClear' => true,],
]);?>
how to give checkbox for each value in list?
[['task'], 'safe']from[['task'], 'string'].