View helper for retrieving layout object

package Zend_View
subpackage Helper

 Methods

Set layout template or retrieve "layout" view model

__invoke(null | string $template) : \Zend\View\Helper\Layout

If no arguments are given, grabs the "root" or "layout" view model. Otherwise, attempts to set the template for that view model.

Parameters

$template

nullstring

Returns

Get layout template

getLayout() : string

Returns

string

Get the view object

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

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

Returns

Set layout template

setTemplate(string $template) : \Zend\View\Helper\Layout

Parameters

$template

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

Get the root view model

getRoot() : null | \Zend\View\Model\ModelInterface

Retrieve the view model helper

getViewModelHelper() : \Zend\View\Helper\ViewModel

 Properties

 

View object

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

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

$viewModelHelper

$viewModelHelper : \Zend\View\Helper\ViewModel