package |
Default |
inherited_from |
\Zend\Mvc\Controller\Plugin\AbstractPlugin |
Methods
Invoke as a functor
__invoke(null|string $template = null
) : \Zend\View\Model\ModelInterface | \Zend\Mvc\Controller\Plugin\Layout
If no arguments are given, grabs the "root" or "layout" view model.
Otherwise, attempts to set the template for that view model.
Parameters
$template
null
string
Returns
\Zend\View\Model\ModelInterface
\Zend\Mvc\Controller\Plugin\Layout
Get the current controller instance
getController() : null | \Zend\Stdlib\DispatchableInterface
Inherited
inherited_from |
\Zend\Mvc\Controller\Plugin\PluginInterface::getController() |
Returns
null
\Zend\Stdlib\DispatchableInterface
Set the current controller instance
setController(\Zend\Stdlib\DispatchableInterface $controller) : void
Inherited
inherited_from |
\Zend\Mvc\Controller\Plugin\PluginInterface::setController() |
Parameters
$controller
\Zend\Stdlib\DispatchableInterface
Set the layout template
setTemplate(string $template) : \Zend\Mvc\Controller\Plugin\Layout
Parameters
$template
string
Returns
\Zend\Mvc\Controller\Plugin\Layout
Get the event
getEvent() : \Zend\Mvc\MvcEvent
Exceptions
\Zend\Mvc\Exception\DomainException |
if unable to find event |
Returns
\Zend\Mvc\MvcEvent
Retrieve the root view model from the event
getViewModel() : \Zend\View\Model\ModelInterface
Exceptions
\Zend\Mvc\Exception\DomainException |
|
Returns
\Zend\View\Model\ModelInterface
Properties
$controller
$controller : null | \Zend\Stdlib\DispatchableInterface
$event
$event : \Zend\Mvc\MvcEvent