Helper for rendering a template fragment in its own variable scope.

package Zend_View
subpackage Helper

 Methods

Renders a template fragment within a variable scope distinct from the calling View object.

__invoke(string | \Zend\View\Model\ModelInterface $name, array | object $values) : string | \Zend\View\Helper\Partial

It proxies to view's render function

Parameters

$name

string\Zend\View\Model\ModelInterface

Name of view script, or a view model

$values

arrayobject

Variables to populate in the view

Exceptions

\Zend\View\Exception\RuntimeException

Returns

Retrieve object key

getObjectKey() : null | string

The objectKey is the variable to which an object in the iterator will be assigned.

Returns

nullstring

Get the view object

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

inherited_from \Zend\View\Helper\AbstractHelper::getView()

Returns

Set object key

setObjectKey(string $key) : \Zend\View\Helper\Partial

Parameters

$key

string

Returns

Set the View object

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

inherited_from \Zend\View\Helper\AbstractHelper::setView()

Parameters

Returns

 Properties

 

Variable to which object will be assigned

$objectKey : string

 

View object

$view : \Zend\View\Renderer\RendererInterface
Inherited

inherited_from \Zend\View\Helper\AbstractHelper::$$view