Zend Framework: How do I remove the decorators on a Zend Form Hidden Element?

后端 未结 11 1709
说谎
说谎 2020-12-23 00:07

I\'m trying to remove the default decorators on a hidden form element. By default, the hidden element is displayed like this:

Hidden Element Label
11条回答
  •  伪装坚强ぢ
    2020-12-23 00:19

    Using only a single "ViewHelper" decorator will generate invalid markup if you're still using the

    wrapper. Another approach is outlined in ZF-2718. This adds hidden fields to a subform that is wrapped in a
    .

提交回复
热议问题