Helper for passing data between otherwise segregated Views. It's called Placeholder to make its typical usage obvious, but can be used just as easily for non-Placeholder things. That said, the support for this is only guaranteed to effect subsequently rendered templates, and of course Layouts.

package Default
inherited_from \Zend\View\Helper\AbstractHelper

 Methods

Placeholder helper

__invoke(string $name = null) : \Zend\View\Helper\Placeholder\Container\AbstractContainer

Parameters

$name

string

Exceptions

\Zend\View\Exception\InvalidArgumentException

Returns

\Zend\View\Helper\Placeholder\Container\AbstractContainer

Does a particular container exist?

containerExists(string $key) : boolean

Parameters

$key

string

Returns

boolean

createContainer

createContainer(string $key, array $value = array()) : \Zend\View\Helper\Placeholder\Container\AbstractContainer

Parameters

$key

string

$value

array

Returns

\Zend\View\Helper\Placeholder\Container\AbstractContainer

Retrieve a placeholder container

getContainer(string $key) : \Zend\View\Helper\Placeholder\Container\AbstractContainer

Parameters

$key

string

Returns

\Zend\View\Helper\Placeholder\Container\AbstractContainer

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

 

Default container class

$containerClass : string

Default

'Zend\View\Helper\Placeholder\Container'
 

Placeholder items

$items : array

Default

array()
 

View object instance

$view : \Zend\View\Renderer\RendererInterface

Default

null