kartik-v / yii2-builder

Build forms (single or tabular) easily for Yii Framework 2.0.
http://demos.krajee.com/builder
Other
100 stars 50 forks source link

fileinput is not working form builder #122

Closed ajkosh closed 5 years ago

ajkosh commented 7 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 error2

below is view code error1

stale[bot] commented 5 years ago

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.