Class Url

Summary

Fully Qualified Name: Zend\Mvc\Controller\Plugin\Url
Extends: AbstractPlugin

Description

Methods

Name Description Defined By
fromRoute() Generates a URL based on a route Url
getController() Get the current controller instance AbstractPlugin
setController() Set the current controller instance AbstractPlugin

Method Details

fromRoute()

Generates a URL based on a route

Parameter Name Type Description
$route string RouteInterface
$params array|\Traversable Parameters
$options array|bool RouteInterface-specific
$reuseMatchedParams bool Whether

Returns: string

getController()

Get the current controller instance

Returns: null|\Dispatchable

setController()

Set the current controller instance

Parameter Name Type Description
$controller \Dispatchable

Returns: void

Top