Yii 2.0 How to generate form without
?

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


        
4条回答
  •  失恋的感觉
    2021-02-02 09:48

    You could simply use Html::activeTextInput() :

     'Ihre E-Mail Adresse', 'class' => 'newsletter-cta-mail']); ?>
    

    Or change ActiveForm::$fieldConfig configuration :

    ActiveForm::begin([
        'id' => 'contact-form',
        'fieldConfig' => [
            'options' => [
                'tag' => false,
            ],
        ],
    ]); 
    

提交回复
热议问题