Renders a template and stores the rendered output as a placeholder variable for later use.

package Default
inherited_from \Zend\View\Helper\AbstractHelper

 Methods

Renders a template and stores the rendered output as a placeholder variable for later use.

__invoke(string|\Zend\View\Model\ModelInterface $script, string $placeholder) : void

Parameters

$script

string\Zend\View\Model\ModelInterface

The template script to render

$placeholder

string

The placeholder variable name in which to store the rendered output

Get the view object

getView() : null | \Zend\View\Renderer\RendererInterface
Inherited
inherited_from \Zend\View\Helper\HelperInterface::getView()

Returns

null\Zend\View\Renderer\RendererInterface

Set the View object

setView(\Zend\View\Renderer\RendererInterface $view) : \Zend\View\Helper\AbstractHelper
Inherited
inherited_from \Zend\View\Helper\HelperInterface::setView()

Parameters

$view

\Zend\View\Renderer\RendererInterface

Returns

\Zend\View\Helper\AbstractHelper

 Properties

 

View object instance

$view : \Zend\View\Renderer\RendererInterface

Default

null