ZF2-465: Some view helpers depend on renderer methods not defined in Zend\View\Renderer\RendererInterface

Issue Type: Bug Created: 2012-08-14T09:18:55.000+0000 Last Updated: 2012-10-08T20:16:34.000+0000 Status: Closed Fix version(s): Reporter: Alan Crisp (alan.crisp) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend\View

Related issues: Attachments:


The Partial view helper plugin currently has dependencies on renderer methods such as vars() and setVars() which are provided by Zend\View\Renderer\PhpRenderer but are not defined in Zend\View\Renderer\RendererInterface. This limits the usefulness of the Partial helper plugin (and any others which utilise it internally) since they can only be used with the PHP Renderer.

On quick inspection a handful of other helpers appear to be affected, including Layout and HeadMeta, which require the plugin() method.

If the provided view helpers are only intended to be used with PHP templates then Zend\View\Helper\AbstractHelper::setView() should require a concrete implementation of Zend\View\Renderer\PhpRenderer rather than any implementation of Zend\View\Renderer\RendererInterface.

Ideally, Zend\View\Renderer\RendererInterface would be updated to include these additional methods or perhaps an AbstractRenderer could be provided?


Posted by Ralph Schindler (ralph) on 2012-10-08T20:16:34.000+0000

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit:

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.