Class Layout

Summary

Fully Qualified Name: Zend\View\Helper\Layout
Extends: AbstractHelper

Description

View helper for retrieving layout object

Methods

Name Description Defined By
__invoke() Set layout template or retrieve "layout" view model Layout
getLayout() Get layout template Layout
getView() Get the view object AbstractHelper
setTemplate() Set layout template Layout
setView() Set the View object AbstractHelper

Method Details

__invoke()

Set layout template or retrieve "layout" view model

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

Parameter Name Type Description
$template null|string

Returns: \Layout

getLayout()

Get layout template

Returns: string

getView()

Get the view object

Returns: null|\Renderer

setTemplate()

Set layout template

Parameter Name Type Description
$template string

Returns: \Layout

setView()

Set the View object

Parameter Name Type Description
$view \Renderer

Returns: \AbstractHelper

Top