Closed ajkosh closed 5 years ago
fileinput is not giving any output from form builder ,even after define below parameters also.
view code
<?php $form = ActiveForm::begin([ 'options' => ['class' => 'form-hori 'enctype' => 'multipart/form-data' 'id' => 'dynamic-form']); echo Form::widget([ 'model' => $model, 'form' => $form, 'columns' => 2, 'attributes'=>$model->formAttribs ]);?> <?php ActiveForm::end(); ?>
model code
public function getFormAttribs() { return [ 'title'=>['type'=>Form::INPUT_FILE, 'options'=>[]], 'actions'=>['type'=>Form::INPUT_RAW, 'value'=>Html::submitButton('Submit', ['class'=>'btn btn-primary'])] ]; }
below is output after submitting form
below is view code
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
fileinput is not giving any output from form builder ,even after define below parameters also.
view code
model code
below is output after submitting form
below is view code