Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

zend-form 2.12.0

Compare
Choose a tag to compare
@weierophinney weierophinney released this 16 May 18:50
· 141 commits to master since this release

Added

  • #194 adds the ability to whitelist additional HTML attributes for use with a view helper,
    as well as attribute prefixes. These can be enabled via the following:

    $helper->addValidAttribute('attribute-name');
    $helper->addValidAttributePrefix('prefix-');
  • #188 adds a new method to the FormElementErrors view helper, setTranslateMessages(bool $flag).
    By default, the helper continues to translate error messages (if a translator
    is present), as introduced in 2.11.0. However, using this method, you can
    disable translation, which may be necessary to prevent double translation
    and/or to reduce logs from missed translation lookups. Because the method
    implements a fluent interface, you may do so in one line:

    echo $this->formElementErrors()->setTranslateMessages(false)->render($element);

    Note: you will need to reset the value afterwards if you want translations to occur
    in later invocations.

Changed

  • #193 modifies how attributes are escaped. If zend-espaper raises an exception
    for an invalid attribute value, helpers will now catch the exception, and use
    a blank value for the attribute. This prevents 500 errors from being raised
    for such pages.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.