todo allow specifying status code as a default, or as an option to methods
category Zend
package Zend_Mvc
subpackage Controller

 Methods

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

Generates a URL based on a route

toRoute(string $route, array $params, array $options, bool $reuseMatchedParams) : \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

bool

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

Redirect to the given URL

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

Parameters

$url

string

Returns

Get the event

getEvent() : \Zend\Mvc\MvcEvent

Exceptions

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

Returns

Get the response

getResponse() : \Zend\Http\Response

Exceptions

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

Returns

 Properties

 

$controller

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

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

$event

$event 

 

$response

$response 

 

$router

$router