zhitaochan
请教一个问题,我使用html原生的form表单,按照样例引入css和js文件,使用
,是可以正常显示的。
但我想使用Yii框架自带的ActiveForm的表单,结果就不能显示了,view视图文件如下,
use yii\bootstrap\ActiveForm;
use yii\helpers\Html;
use kartik\file\FileInput;
use yii\helpers\Url;
<?php
$form = ActiveForm::begin([
'options'=>['class'=>'new_user_form inline_input'],
'fieldConfig'=>[
'template'=>'{label}{input}{error}'
],
]) ?><?php echo $form->field($model, 'cover[]')->widget(FileInput::classname(), [
'options' => ['multiple' => true],
]); ?>