1439. Class

1439.1. Zend\Mvc\Controller\Plugin\Redirect

@todo allow specifying status code as a default, or as an option to methods

1439.1.1. Methods

1439.1.1.1. toRoute

toRoute()

Generates a URL based on a route

Parameters:
  • string – RouteInterface name
  • array – Parameters to use in url generation, if any
  • array – RouteInterface-specific options to use in url generation, if any
  • bool – Whether to reuse matched parameters
Return type:

Response

Throws :

ExceptionDomainException if composed controller does not implement InjectApplicationEventInterface, or router cannot be found in controller event

1439.1.1.2. toUrl

toUrl()

Redirect to the given URL

Parameters:string
Return type:Response

1439.1.1.3. refresh

refresh()

Refresh to current route

Return type:string

1439.1.1.4. getResponse

getResponse()

Get the response

Return type:Response
Throws :ExceptionDomainException if unable to find response

1439.1.1.5. getEvent

getEvent()

Get the event

Return type:MvcEvent
Throws :ExceptionDomainException if unable to find event

Project Versions

Table Of Contents

Previous topic

1438. Class

Next topic

1440. Class

This Page