todo allow specifying status code as a default, or as an option to methods
package Default
inherited_from \Zend\Mvc\Controller\Plugin\AbstractPlugin

 Methods

Get the current controller instance

getController() : null | \Zend\Stdlib\DispatchableInterface
Inherited
inherited_from \Zend\Mvc\Controller\Plugin\PluginInterface::getController()

Returns

null\Zend\Stdlib\DispatchableInterface

Refresh to current route

refresh() : \Zend\Http\Response

Returns

\Zend\Http\Response

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

Generates a URL based on a route

toRoute(string $route = null, array $params = array(), array $options = array(), boolean $reuseMatchedParams = false) : \Zend\Http\Response

Parameters

$route

string

RouteInterface name

$params

array

Parameters to use in url generation, if any

$options

array

RouteInterface-specific options to use in url generation, if any

$reuseMatchedParams

boolean

Whether to reuse matched parameters

Exceptions

\Zend\Mvc\Exception\DomainException if composed controller does not implement InjectApplicationEventInterface, or router cannot be found in controller event

Returns

\Zend\Http\Response

Redirect to the given URL

toUrl(string $url) : \Zend\Http\Response

Parameters

$url

string

Returns

\Zend\Http\Response

Get the event

getEvent() : \Zend\Mvc\MvcEvent

Exceptions

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

Returns

\Zend\Mvc\MvcEvent

Get the response

getResponse() : \Zend\Http\Response

Exceptions

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

Returns

\Zend\Http\Response

 Properties

 

$controller

$controller : null | \Zend\Stdlib\DispatchableInterface

Default

 

$event

$event 

Default

 

$response

$response 

Default