Zend\View\Helper\Url
Helper for making easy links and getting urls that depend on the routes and router.
Synopsis
class Url
extends AbstractHelper
{
- // members
- protected RouteStackInterface $router;
- protected RouteMatch. $routeMatch;
- // Inherited members from AbstractHelper
- protected RendererInterface $view;
- // methods
- public string __invoke()
- public Url setRouter()
- public Url setRouteMatch()
- // Inherited methods from AbstractHelper
- public AbstractHelper setView()
- public null|Renderer getView()
Hierarchy
Extends
Members
protected
- $routeMatch
—
Zend\View\Helper\RouteMatch.
RouteInterface match returned by the router. - $router
—
Zend\Mvc\Router\RouteStackInterface
RouteStackInterface instance. - $view
—
Zend\View\Renderer\RendererInterface
View object instance
Methods
public
- __invoke() — Generates a url given the name of a route.
- setRouteMatch() — Set route match returned by the router.
- setRouter() — Set the router to use for assembling.