class ActionViewHelper extends AbstractViewHelper (View source)

A view helper for creating URIs to actions.

= Examples =

some link ``` currentpackage/currentcontroller (depending on routing setup and current package/controller/action) some link ``` mypackage/mycontroller/mysubpackage/myaction?key1=value1&key2=value2 (depending on routing setup)

Properties

protected RenderingContextInterface $renderingContext from  AbstractViewHelper
protected ControllerContext $controllerContext

Controller Context to use

from  AbstractViewHelper
protected ObjectManagerInterface $objectManager from  AbstractViewHelper
protected LoggerInterface $logger from  AbstractViewHelper

Methods

void
setRenderingContext(RenderingContextInterface $renderingContext)

No description

void
injectObjectManager(ObjectManagerInterface $objectManager)

No description

void
injectLogger(LoggerInterface $logger)

Injects the (system) logger based on PSR-3.

void
initializeArguments()

Initialize arguments

string
render()

Render the Uri.

Details

void setRenderingContext(RenderingContextInterface $renderingContext)

No description

Parameters

RenderingContextInterface $renderingContext

Return Value

void

void injectObjectManager(ObjectManagerInterface $objectManager)

No description

Parameters

ObjectManagerInterface $objectManager

Return Value

void

void injectLogger(LoggerInterface $logger)

Injects the (system) logger based on PSR-3.

Parameters

LoggerInterface $logger

Return Value

void

bool isEscapingInterceptorEnabled()

No description

Return Value

bool

void initializeArguments()

Initialize arguments

Return Value

void

string render()

Render the Uri.

Return Value

string

The rendered link

Exceptions

Exception