Methods

Generates a URL based on a route

fromRoute(string $route, array | \Traversable $params, array | bool $options, bool $reuseMatchedParams) : string

Parameters

$route

string

RouteInterface name

$params

array\Traversable

Parameters to use in url generation, if any

$options

arraybool

RouteInterface-specific options to use in url generation, if any. If boolean, and no fourth argument, used as $reuseMatchedParams.

$reuseMatchedParams

bool

Whether to reuse matched parameters

Exceptions

\Zend\Mvc\Exception\RuntimeException
\Zend\Mvc\Exception\InvalidArgumentException
\Zend\Mvc\Exception\DomainException

Returns

string

Get the current controller instance

getController() : null | \Zend\Stdlib\DispatchableInterface
Inherited

inherited_from \Zend\Mvc\Controller\Plugin\AbstractPlugin::getController()

Returns

Set the current controller instance

setController(\Zend\Stdlib\DispatchableInterface $controller) : void
Inherited

inherited_from \Zend\Mvc\Controller\Plugin\AbstractPlugin::setController()

Parameters

 Properties

 

$controller

$controller : null | \Zend\Stdlib\DispatchableInterface
Inherited

inherited_from \Zend\Mvc\Controller\Plugin\AbstractPlugin::$$controller