Hi,
how can I use this:
echo $form->field($model, 'amministratore')->widget(FileInput::classname(), [
'options' => ['accept' => 'image/*'],
]);
into a Form::widget structure?
Like this one for example:
echo Form::widget([
'model' => $model,
'form' => $form,
'columns' => 4,
'attributes' => [
'dataSinistro' => [
'type'=>Form::INPUT_WIDGET,
'widgetClass'=>'\kartik\datecontrol\DateControl',
],
'idTipoEvento' => [
'type'=>Form::INPUT_DROPDOWN_LIST,
'label' => "Tipo Evento",
'widgetClass'=>'\kartik\widgets\Select2',
'items' => ArrayHelper::map(TipoEvento::find()->all(), 'id', 'evento'),
],
]
]);
Thank you
Alex