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

zend-view 2.9.0

Compare
Choose a tag to compare
@weierophinney weierophinney released this 21 Mar 15:07
· 293 commits to master since this release

Added

  • #89 updates the HeadScript and InlineScript view helpers to whitelist the id attribute as an optional attribute.

  • #96 updates the HeadScript, HeadLink, and InlineScript view helpers to whitelist the crossorigin and integrity attributes as optional attributes.

  • #64 adds a new Asset view helper. This helper uses the following configuration to map a named asset to the actual file to serve:

    'view_helper_config' => [
        'asset' => [
            'resource_map' => [
                'css/style.css' => 'css/style-3a97ff4ee3.css',
                'js/vendor.js' => 'js/vendor-a507086eba.js',
            ],
        ],
    ],

    This can also be automated via tools such as gulp-rev and grunt-rev by using the rev-manifest.json each creates directly within your configuration:

    'view_helper_config' => [
        'asset' => [
            'resource_map' => json_decode(file_get_contents('path/to/rev-manifest.json'), true),
        ],
    ],

    The benefit of this approach is that it allows your view scripts to reference a static asset name, while integrating with your JS and CSS build tools.

Deprecated

  • Nothing.

Removed

  • #114 removes support
    for PHP 5.5.

Fixed

  • #110 provides a fix for the navigation helpers to ensure that usage of either the default or navigation containers (documentation specified default, but usage only allowed navigation previously). When default is specified, the Zend\Navigation\Navigation service will be used for the container; if navigation is used, that service will be pulled instead (which is usually an alias for the Zend\Navigation\Navigation service anyways).