1432. Class

1432.1. Zend\Mvc\Controller\Plugin\Layout

1432.1.1. Methods

1432.1.1.1. setTemplate

setTemplate()

Set the layout template

Parameters:string
Return type:Layout

1432.1.1.2. __invoke

__invoke()

Invoke as a functor

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:Model|Layout

1432.1.1.3. getEvent

getEvent()

Get the event

Return type:MvcEvent
Throws :ExceptionDomainException if unable to find event

1432.1.1.4. getViewModel

getViewModel()

Retrieve the root view model from the event

Return type:Model
Throws :ExceptionDomainException

Project Versions

Table Of Contents

Previous topic

1431. Class

Next topic

1433. Class

This Page