Fully Qualified Name: | Zend\Mvc\Controller\Plugin\Layout |
Extends: | AbstractPlugin |
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 |
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
Get the current controller instance
Returns: null|\Dispatchable
Set the current controller instance
Parameter Name | Type | Description |
---|---|---|
$controller | \Dispatchable |
Returns: void
Set the layout template
Parameter Name | Type | Description |
---|---|---|
$template | string |
Returns: \Layout