This repository was archived by the owner on Jan 31, 2020. It is now read-only.
zend-view 2.9.0
·
293 commits
to master
since this release
Added
-
#89 updates the
HeadScriptandInlineScriptview helpers to whitelist theidattribute as an optional attribute. -
#96 updates the
HeadScript,HeadLink, andInlineScriptview helpers to whitelist thecrossoriginandintegrityattributes as optional attributes. -
#64 adds a new
Assetview 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.jsoneach 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
defaultornavigationcontainers (documentation specifieddefault, but usage only allowednavigationpreviously). Whendefaultis specified, theZend\Navigation\Navigationservice will be used for the container; ifnavigationis used, that service will be pulled instead (which is usually an alias for theZend\Navigation\Navigationservice anyways).