Class Layout

Summary

Fully Qualified Name: Zend\Mvc\Controller\Plugin\Layout
Extends: AbstractPlugin

Description

Methods

Name Description Defined By
__invoke() Invoke as a functor Layout
getController() Get the current controller instance AbstractPlugin
setController() Set the current controller instance AbstractPlugin
setTemplate() Set the layout template Layout

Method Details

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

Parameter Name Type Description
$template null|string

Returns: \Model|\Layout

getController()

Get the current controller instance

Returns: null|\Dispatchable

setController()

Set the current controller instance

Parameter Name Type Description
$controller \Dispatchable

Returns: void

setTemplate()

Set the layout template

Parameter Name Type Description
$template string

Returns: \Layout

Top