package Default
inherited_from \Zend\Mvc\Controller\Plugin\AbstractPlugin

 Methods

Generates a URL based on a route

fromRoute(string $route = null, array|\Traversable $params = array(), array|boolean $options = array(), boolean $reuseMatchedParams = false) : string

Parameters

$route

string

RouteInterface name

$params

array\Traversable

Parameters to use in url generation, if any

$options

arrayboolean

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

$reuseMatchedParams

boolean

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\PluginInterface::getController()

Returns

null\Zend\Stdlib\DispatchableInterface

Set the current controller instance

setController(\Zend\Stdlib\DispatchableInterface $controller) : void
Inherited
inherited_from \Zend\Mvc\Controller\Plugin\PluginInterface::setController()

Parameters

$controller

\Zend\Stdlib\DispatchableInterface

 Properties

 

$controller

$controller : null | \Zend\Stdlib\DispatchableInterface

Default