category Zend
package Zend_Mvc
subpackage Controller

 Methods

Invoke as a functor

__invoke(null | string $template) : \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

nullstring

Returns

Get the current controller instance

getController() : null | \Zend\Stdlib\DispatchableInterface
Inherited

inherited_from \Zend\Mvc\Controller\Plugin\AbstractPlugin::getController()

Returns

Set the current controller instance

setController(\Zend\Stdlib\DispatchableInterface $controller) : void
Inherited

inherited_from \Zend\Mvc\Controller\Plugin\AbstractPlugin::setController()

Parameters

Set the layout template

setTemplate(string $template) : \Zend\Mvc\Controller\Plugin\Layout

Parameters

$template

string

Returns

Get the event

getEvent() : \Zend\Mvc\MvcEvent

Exceptions

\Zend\Mvc\Exception\DomainException if unable to find event

Returns

Retrieve the root view model from the event

getViewModel() : \Zend\View\Model\ModelInterface

 Properties

 

$controller

$controller : null | \Zend\Stdlib\DispatchableInterface
Inherited

inherited_from \Zend\Mvc\Controller\Plugin\AbstractPlugin::$$controller
 

$event

$event : \Zend\Mvc\MvcEvent