__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() |
---|
string
Name of the route
array
Parameters for the link
array\Traversable
Options for the route
bool
Whether 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 |
string
Url 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 |
---|