2016-12-06 20:47:45 0 评论 Yii 2.0 Boy.Lee

Yii 2.0 上传文件和图片

<?php $form = ActiveForm::begin(['options'=>['enctype'=>'multipart/form-data']]); ?>


<?= $form->field($model, 'filePath')->fileInput() ?>