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: https://github.com/zendframework/zf2/issues/2526
Have you found an issue?
See the Overview section for more details.