Yii 2.0 How to generate form without
?

前端 未结 4 1236
抹茶落季
抹茶落季 2021-02-02 09:30
 \'contact-form\']); ?>
        field($model, \'email\',  [
                \'inputOptions\' => [          


        
4条回答
  •  心在旅途
    2021-02-02 10:12

    or You could something like this (change div to span)

    
    
        $form = ActiveForm::begin([
        'id' => 'contact-form',
        'fieldConfig' => [
                            'template' => "{input}",
                            'options' => [
                                'tag'=>'span'
                            ]
        ]
        ]); 
    
    

提交回复
热议问题