__invoke()
getView()
setRouteMatch()
setRouter()
setView()
$routeMatch
$router
$view
Helper for making easy links and getting urls that depend on the routes and router.
__invoke(string $name, array $params, array | \Traversable $options, bool $reuseMatchedParams) : string
| see | \Zend\Mvc\Router\RouteInterface::assemble() |
|---|
stringName of the route
arrayParameters for the link
array\TraversableOptions for the route
boolWhether to reuse matched parameters
\Zend\View\Exception\RuntimeException |
If no RouteStackInterface was provided |
|---|---|
\Zend\View\Exception\RuntimeException |
If no RouteMatch was provided |
\Zend\View\Exception\RuntimeException |
If RouteMatch didn't contain a matched route name |
\Zend\View\Exception\InvalidArgumentException |
If the params object was not an array or \Traversable object |
stringUrl For the link href attributegetView() : null | \Zend\View\Renderer\RendererInterface
| inherited_from | \Zend\View\Helper\AbstractHelper::getView() |
|---|
setRouteMatch(\Zend\Mvc\Router\RouteMatch $routeMatch) : \Zend\View\Helper\Url
setRouter(\Zend\Mvc\Router\RouteStackInterface $router) : \Zend\View\Helper\Url
setView(\Zend\View\Renderer\RendererInterface $view) : \Zend\View\Helper\AbstractHelper
| inherited_from | \Zend\View\Helper\AbstractHelper::setView() |
|---|
$routeMatch : \Zend\View\Helper\RouteMatch.
$view : \Zend\View\Renderer\RendererInterface
| inherited_from | \Zend\View\Helper\AbstractHelper::$$view |
|---|