Add class attribute to Form Errors

后端 未结 6 2020
没有蜡笔的小新
没有蜡笔的小新 2020-12-29 09:15

I´m developing an application using Zend Framework 2 and I use FormRow helper to render a label, the input and errors (if present) in a Form.



        
6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-29 09:30

    From the documentation of ZF2. Here's the link: http://framework.zend.com/manual/2.0/en/modules/zend.form.view.helpers.html#formelementerrors

    echo $this->formElementErrors($element, array('class' => 'help-inline'));
    // 
    • Value is required and can't be empty

提交回复
热议问题