zendframework/zend-view
Abandoned; use laminas/laminas-view. Flexible view layer supporting and providing multiple view layers, helpers, and more
2.11.4
15M downloads/mo
#4564 most downloaded on Packagist
zendframework/zend-view
What this package is like to depend on
Last release 7 years ago
no release in 18 months
Release timing varies
gaps range from 9 days to 11 months
Some releases are documented
notes for 25 of 84 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
84 releases · first in 2012
0 releases in the last 12 months
see the full history below
Release timeline
54 releases · Oct 2012 to Dec 2019Releases
latest 60 of 84-
2.11.404 Dec 2019Release notes
Open source →Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #203 fixes PHP 7.4 compatibility.
Release notes
Open source →Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #203 fixes PHP 7.4 compatibility.
-
2.11.311 Oct 2019Release notes
Open source →Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
Release notes
Open source →Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
-
2.11.219 Feb 2019Release notes
Open source →Added
- Nothing.
Changed
- #180 alters the behavior of the
HeadMetahelper to honor the value of the
autoEscapeflag when rendering values. Previously, it would ignore the
setting and always escape the values.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
Release notes
Open source →Added
- Nothing.
Changed
- #180 alters the behavior of the
HeadMetahelper to honor the value of theautoEscapeflag when rendering values. Previously, it would ignore the setting and always escape the values.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
-
2.11.110 Dec 2018Release notes
Open source →Added
- #179 adds
^3.0to the zendframework/zend-json constraints, allowing v3
releases to be used with zend-view.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
Release notes
Open source →Added
- #179 adds
^3.0to the zendframework/zend-json constraints, allowing v3 releases to be used with zend-view.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
- #179 adds
-
2.11.006 Dec 2018Release notes
Open source →Added
-
#168 adds two new methods to
Zend\View\Helper\Placeholder(and thus any
helper extending it):deleteContainer(string $name)can be used to delete a placeholder container.clearContainers()can be used to clear all placeholder containers.
These new features are particularly useful when in long-running server
environments, such as Swoole, where you may need to clear the contents on each
request.
Changed
-
#155 modifies the
Zend\View\Helper\Service\IdentifyFactorysuch that it will
now also look for the serviceZend\Authentication\AuthenticationServiceInterface
if the serviceZend\Authentication\AuthenticationServiceis not found. This
allows using a service named after the interface instead of the
implementation if desired. -
#158 modifies how a
ViewModel(and all extensions) is cloned; the$variables
property, if it is an object, is now cloned as well to ensure changes in the
new instance do not affect the current one. -
#153 updates the
ConsoleModel::setErrorLevel()method to implement a fluent
interface.
Deprecated
- Nothing.
Removed
- #147 removes the property
$regKeyfrom a number of helpers; these were a
remnant of ZF1, and have not been used internally since the initial 2.0.0
release.
Fixed
- #164 fixes the various
Head*view helpers such that they will now properly
escape attributes as HTML attributes (instead of as HTML content).
Release notes
Open source →Added
-
#168 adds two new methods to
Zend\View\Helper\Placeholder(and thus any helper extending it):deleteContainer(string $name)can be used to delete a placeholder container.clearContainers()can be used to clear all placeholder containers.
These new features are particularly useful when in long-running server environments, such as Swoole, where you may need to clear the contents on each request.
Changed
-
#155 modifies the
Zend\View\Helper\Service\IdentifyFactorysuch that it will now also look for the serviceZend\Authentication\AuthenticationServiceInterfaceif the serviceZend\Authentication\AuthenticationServiceis not found. This allows using a service named after the interface instead of the implementation if desired. -
#158 modifies how a
ViewModel(and all extensions) is cloned; the$variablesproperty, if it is an object, is now cloned as well to ensure changes in the new instance do not affect the current one. -
#153 updates the
ConsoleModel::setErrorLevel()method to implement a fluent interface.
Deprecated
- Nothing.
Removed
- #147 removes the property
$regKeyfrom a number of helpers; these were a remnant of ZF1, and have not been used internally since the initial 2.0.0 release.
Fixed
- #164 fixes the various
Head*view helpers such that they will now properly escape attributes as HTML attributes (instead of as HTML content).
-
-
2.10.106 Dec 2018Release notes
Open source →Added
- #173 adds support for PHP 7.3.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
-
#170 ensures that variables referenced in
compact()operations are properly
initialized, fixing an error that occures in PHP 7.3. -
#169 adds zendframework/zend-json as a required dependency, as it is referenced
in multiple locations within the package. -
#156 adds missing
@methodannotations to theHeadMetahelper.
Release notes
Open source →Added
- #173 adds support for PHP 7.3.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
-
#170 ensures that variables referenced in
compact()operations are properly initialized, fixing an error that occures in PHP 7.3. -
#169 adds zendframework/zend-json as a required dependency, as it is referenced in multiple locations within the package.
-
#156 adds missing
@methodannotations to theHeadMetahelper.
-
2.10.017 Jan 2018Release notes
Open source →Added
-
#135 adds support for PHP 7.2.
-
#138 adds support for the HTML5 "as" attribute to the
HeadLinkhelper. This can be used to help prioritize resource loading. -
#139 adds two new methods to the
Zend\View\Helper\Gravatarclass:setAttributes()andgetAttributes().
Changed
- #133 modifies the behavior the
placeholder()helper to no longer render a prefix or postfix if no items are available in the container.
Deprecated
- #139 deprecates the
Zend\View\Helper\GravatarmethodssetAttribs()andgetAttribs()in favor of the new methodssetAttributes()andgetAttributes(), respectively.
Removed
- #135 removes support for HHVM.
Fixed
- Nothing.
Release notes
Open source →Added
-
#135 adds support for PHP 7.2.
-
#138 adds support for the HTML5 "as" attribute to the
HeadLinkhelper. This can be used to help prioritize resource loading. -
#139 adds two new methods to the
Zend\View\Helper\Gravatarclass:setAttributes()andgetAttributes().
Changed
- #133 modifies the
behavior the
placeholder()helper to no longer render a prefix or postfix if no items are available in the container.
Deprecated
- #139 deprecates the
Zend\View\Helper\GravatarmethodssetAttribs()andgetAttribs()in favor of the new methodssetAttributes()andgetAttributes(), respectively.
Removed
- #135 removes support for HHVM.
Fixed
- Nothing.
-
-
2.9.117 Jan 2018Release notes
Open source →Added
- #136 updates the
Navigationhelper class to document the various proxy methods it allows via method overloading via@methodannotations.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
-
#123 updates the
HelperPluginManagersuch that it no longer injects a translator in a helper if one is already present. -
#125 provides an update to the
PhpRenderer:render()method such that it will now catch not onlyExceptioninstances, but also PHP 7Throwableinstances, and properly cleanup the output buffers when it does. -
#121 provides a fix to ensure that content generated on a previous execution of
PhpRenderer::render()is never re-used.
Release notes
Open source →Added
- #136 updates the
Navigationhelper class to document the various proxy methods it allows via method overloading via@methodannotations.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
-
#123 updates the
HelperPluginManagersuch that it no longer injects a translator in a helper if one is already present. -
#125 provides an update to the
PhpRenderer:render()method such that it will now catch not onlyExceptioninstances, but also PHP 7Throwableinstances, and properly cleanup the output buffers when it does. -
#121 provides a fix to ensure that content generated on a previous execution of
PhpRenderer::render()is never re-used.
- #136 updates the
-
2.9.021 Mar 2017Release notes
Open source →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).
-
-
2.8.220 Mar 2017Release notes
Open source →Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #92 fixes the docblocks
and exception messages in the breadcrumbs and menu navigation helpers to
remove references to 'module' keys for the
$partialargument, as that key is no longer used. - #98 fixes how the
HeadMetahelper renders the<meta charset>tag, ensuring it is the first rendered. As long as theHeadMetahelper is called early in your markup, this should ensure it is within the first 1024 characters, ensuring your document validates. - #104 fixes the
@methodannotation for thePlaceholderview helper to use the correct case, fixing issues with method completion in IDEs. - #112 fixes an issue in
the
PhpRendererStrategywhereby absence of a response instance in theViewEventwould lead to a fatal error.
-
2.8.130 Jun 2016 -
2.8.021 Jun 2016Release notes
Open source →Added
-
#67 adds a script,
templatemap_generator.php, which is available invendor/bin/templatemap_generator.phponce installed. This script replaces the original present in the zendframework/zendframework package, and simplifies it for the most common use case. Usage is:$ cd module/ModuleName/config $ ../../../vendor/bin/templatemap_generator.php ../view > template_map.config.phpYou can also provide a list of files via globbing or usage of
findafter the initial directory argument; if provided that list of files will be used to generate the map. (The directory argument is then used to strip the path information when generating the template name.)
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
-
-
2.7.012 May 2016Release notes
Open source →Added
- #1 adds a new
loop()method to thepartialLoop()helper, allowing the ability to chain setters with rendering:$this->partialLoop()->setObjectKey('foo')->loop('partial', $data) - #60 adds the ability to
register and consume arbitrary callables as view helpers within the
HelperPluginManager.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
- #1 adds a new
-
2.6.812 May 2016Release notes
Open source →Added
- #22 adds support for the
asyncattribute within theheadScripthelper. - #59 adds and publishes the documentation to https://zendframework.github.io/zend-view/
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #21 updates the
headScripthelper to allow empty attribute types to render as keys only when using an HTML5 doctype.
- #22 adds support for the
-
2.6.718 Apr 2016Release notes
Open source →Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #58 updates the
url()helper so that it can work with either the zend-mvc v2 router subcomponent or zend-router.
-
2.6.618 Apr 2016Release notes
Open source →Added
- #57 adds
Zend\View\Helper\TranslatorAwareTrait, which provides implementation forZend\I18n\Translator\TranslatorAwareInterface, and allowed removal of duplicated implementations in several helpers.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #57 removes the explicit
dependency on
Zend\I18n\Translator\TranslatorAwareInterfaceby allowing helpers to duck type the interface to receive a translator during instantiation; this allows such helpers to work even when zend-i18n is not installed. The following helpers were updated to duck type the interface instead of implement it explicitly:FlashMessengerHeadTitle- all
Navigationhelpers
- #57 adds
-
2.6.521 Mar 2016Release notes
Open source →Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #55 fixes a circular dependency issue in the navigation helpers with regards to event manager resolution.
-
2.6.402 Mar 2016Release notes
Open source →Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #52 fixes several issues
detected after re-enabling tests skipped when executed against
zend-servicemanager/zend-eventmanager v3:
HelperPluginManagernow implements anEventManagerAwareinitializer.Zend\View\Helper\Navigation\AbstractHelpernow contains logic to ensure that when anEventManagerinstance is lazy-loaded, it composes aSharedEventManager.- The
FlashMessengerfactory now correctly pulls theconfigservice, not theConfigservice (former is both backwards- and forwards compatible).
-
2.6.322 Feb 2016Release notes
Open source →Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #50 fixes
the initializer defined and registered in
Navigation\PluginManager::__construct()to ensure it properly pulls and injects the application container into navigation helpers, under both zend-servicemanager v2 and v3. Additionally, when lazy-instantiating theNavigation\PluginManager, theNavigationhelper now passes the composed service manager instance to its constructor.
-
2.6.218 Feb 2016Release notes
Open source →Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #47 fixes
Navigation\PluginManagerto ensure it is backwards compatible with zend-servicemanager v2, including:- fixing the constructor to be BC with v2 and forwards-compatible with v3.
- adding additional, normalized alias/factory pairs.
- #47 fixes
the behavior of
HelperPluginManager::injectTranslator()to return early if no container is provided (fixing an issue with navigation helpers introduced in 2.6.0).
-
2.6.118 Feb 2016Release notes
Open source →Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #44 fixes the
constructor of
HelperPluginManagerto ensure it is backwards compatible with zend-servicemanager v2.
-
2.6.017 Feb 2016Release notes
Open source →Added
- #8 adds a new method to
each of the
BreadcrumbsandMenunavigation helpers,renderPartialWithParams(array $params = [], $container = null, $partial = null). This method allows passing parameters to the navigation partial to render, just as you would when using thepartial()view helper.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #15,
#17,
#35, and
#42 update the component
to be forwards-compatible with the v3 releases of zend-eventmanager,
zend-servicemanager, and zend-stdlib. The changes include:
- changes to how events are triggered to ensure they continue working correctly.
- updates to the plugin manager to be forwards-compatible.
- updates to helper factories to be forwards-compatible.
- #8 adds a new method to
each of the
-
2.5.319 Jan 2016Release notes
Open source →Added
- #5 adds support for the
itempropattribute in theheadLink()view helper.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #25 updates
PhpRenderer::render()to no longer lazy-instantiate aFilterChain; content filtering is now only done if aFitlerChainis already injected in the renderer.
- #5 adds support for the
-
2.5.216 Jun 2015Release notes
Open source →Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #4 fixes an issue with
how the
ServerUrldetects and emits the port when port-forwarding is in effect.
-
2.5.103 Jun 2015Nothing published for this version
-
2.5.003 Jun 2015Nothing published for this version
-
2.4.1316 Jun 2015Nothing published for this version
-
2.4.12no dateNothing published for this version
-
2.4.11no dateNothing published for this version
-
2.4.10no dateNothing published for this version
-
2.4.9no dateNothing published for this version
-
2.4.8no dateNothing published for this version
-
2.4.7no dateNothing published for this version
-
2.4.6no dateNothing published for this version
-
2.4.5no dateNothing published for this version
-
2.4.4no dateNothing published for this version
-
2.4.3no dateRelease notes
Open source →Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #4 fixes an issue with
how the
ServerUrldetects and emits the port when port-forwarding is in effect.
-
2.4.207 May 2015Nothing published for this version
-
2.4.1no dateNothing published for this version
-
2.4.025 Mar 2015Nothing published for this version
-
2.3.913 Jan 2015Nothing published for this version
-
2.3.8no dateNothing published for this version
-
2.3.7no dateNothing published for this version
-
2.3.6no dateNothing published for this version
-
2.3.5no dateNothing published for this version
-
2.3.4no dateNothing published for this version
-
2.3.311 Aug 2014Nothing published for this version
-
2.3.2no dateNothing published for this version
-
2.3.115 Apr 2014Nothing published for this version
-
2.3.012 Mar 2014Nothing published for this version
-
2.2.1015 Apr 2014Nothing published for this version
-
2.2.9no dateNothing published for this version
-
2.2.8no dateNothing published for this version
-
2.2.7no dateNothing published for this version
-
2.2.605 Mar 2014Nothing published for this version
-
2.2.531 Oct 2013Nothing published for this version
-
2.2.421 Aug 2013Nothing published for this version
-
2.2.3no dateNothing published for this version
-
2.2.222 Jul 2013Nothing published for this version
-
2.2.112 Jun 2013Nothing published for this version