Zend\Mvc\Controller\Plugin\Redirect
Synopsis
class Redirect
extends AbstractPlugin
{
- // Inherited members from AbstractPlugin
- protected null|Dispatchable $controller;
- // methods
- public Response toRoute()
- public Response toUrl()
- public Response refresh()
- protected Response getResponse()
- protected MvcEvent getEvent()
- // Inherited methods from AbstractPlugin
- public void setController()
- public null|Dispatchable getController()
Hierarchy
Tasks
Line | Task |
---|---|
20+ | allow specifying status code as a default, or as an option to methods |
Members
protected
- $controller — Zend\Mvc\Controller\Plugin\null|Dispatchable
- $event
- $response
Methods
protected
- getEvent() — Get the event
- getResponse() — Get the response
public
- refresh() — Refresh to current route
- toRoute() — Generates a URL based on a route
- toUrl() — Redirect to the given URL
Inherited from Zend\Mvc\Controller\Plugin\AbstractPlugin
public
- getController() — Get the current controller instance
- setController() — Set the current controller instance