This repository has been archived by the owner on Jan 31, 2020. It is now read-only.
zend-view 2.9.0
weierophinney
released this
21 Mar 15:07
·
293 commits
to master
since this release
Added
-
#89 updates the
HeadScript
andInlineScript
view helpers to whitelist theid
attribute as an optional attribute. -
#96 updates the
HeadScript
,HeadLink
, andInlineScript
view helpers to whitelist thecrossorigin
andintegrity
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
ornavigation
containers (documentation specifieddefault
, but usage only allowednavigation
previously). Whendefault
is specified, theZend\Navigation\Navigation
service will be used for the container; ifnavigation
is used, that service will be pulled instead (which is usually an alias for theZend\Navigation\Navigation
service anyways).