Class Url

Summary

Fully Qualified Name: Zend\View\Helper\Url
Extends: AbstractHelper

Description

Helper for making easy links and getting urls that depend on the routes and router.

Methods

Name Description Defined By
__invoke() Generates a url given the name of a route. Url
getView() Get the view object AbstractHelper
setRouteMatch() Set route match returned by the router. Url
setRouter() Set the router to use for assembling. Url
setView() Set the View object AbstractHelper

Method Details

__invoke()

Generates a url given the name of a route.

Parameter Name Type Description
$name string Name
$params array Parameters
$options array|\Traversable Options
$reuseMatchedParams bool Whether

Returns: string Url For the link href attribute

getView()

Get the view object

Returns: null|\Renderer

setRouteMatch()

Set route match returned by the router.

Parameter Name Type Description
$routeMatch \LegacyRouteMatch|\RouteMatch

Returns: \Url

setRouter()

Set the router to use for assembling.

Parameter Name Type Description
$router \LegacyRouteStackInterface|\RouteStackInterface

Returns: \Url

setView()

Set the View object

Parameter Name Type Description
$view \Renderer

Returns: \AbstractHelper

Top