todo |
allow specifying status code as a default, or as an option to methods |
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
Returns
Redirect to the given URL
toUrl(string $url) : \Zend\Http\Response
Parameters
$url
string
Returns
Properties