970. Class

970.1. Zend\View\Helper\Layout

View helper for retrieving layout object

970.1.1. Methods

970.1.1.1. getLayout

getLayout()

Get layout template

Return type:string

970.1.1.2. setTemplate

setTemplate()

Set layout template

Parameters:string
Return type:Layout

970.1.1.3. __invoke

__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.

Parameters:null|string
Return type:Layout

970.1.1.4. getRoot

getRoot()

Get the root view model

Return type:null|Model

970.1.1.5. getViewModelHelper

getViewModelHelper()

Retrieve the view model helper

Return type:ViewModel

Project Versions

Table Of Contents

Previous topic

969. Class

Next topic

971. Class

This Page