Package

ViewHelpers

ViewHelper Documentation

link.action

A view helper for creating links to actions.

= Examples =

<f:link.action>some link</f:link.action> some link (depending on routing setup and current package/controller/action)

<f:link.action action="myAction" controller="MyController" package="YourCompanyName.MyPackage" subpackage="YourCompanyName.MySubpackage" arguments="{key1: 'value1', key2: 'value2'}">some link</f:link.action> some link (depending on routing setup)

Arguments

additionalAttributes anySimpleType

Additional tag attributes. They will be added directly to the resulting HTML tag.

data anySimpleType

Additional data-* attributes. They will each be added with a "data-" prefix.

class string

CSS class(es) for this element

dir string

Text direction for this HTML element. Allowed strings: "ltr" (left to right), "rtl" (right to left)

id string

Unique (in this file) identifier for this HTML element.

lang string

Language for this element. Use short names specified in RFC 1766

style string

Individual CSS styles for this element

title string

Tooltip text of element

accesskey string

Keyboard shortcut to access this element

tabindex integer

Specifies the tab order of this element

onclick string

JavaScript evaluated for the onclick event

name string

Specifies the name of an anchor

rel string

Specifies the relationship between the current document and the linked document

rev string

Specifies the relationship between the linked document and the current document

target string

Specifies where to open the linked document

action string

Target action

arguments anySimpleType

Arguments

controller string

Target controller. If NULL current controllerName is used

package string

Target package. if NULL current package is used

subpackage string

Target subpackage. if NULL current subpackage is used

section string

The anchor to be added to the URI

format string

The requested format, e.g. ".html"

additionalParams anySimpleType

additional query parameters that won't be prefixed like $arguments (overrule $arguments)

addQueryString boolean

If set, the current query parameters will be kept in the URI

argumentsToBeExcludedFromQueryString anySimpleType

arguments to be removed from the URI. Only active if $addQueryString = TRUE

useParentRequest boolean

If set, the parent Request will be used instead of the current one. Note: using this argument can be a sign of undesired tight coupling, use with care

absolute boolean

By default this ViewHelper renders links with absolute URIs. If this is FALSE, a relative URI is created instead

useMainRequest boolean

If set, the main Request will be used instead of the current one. Note: using this argument can be a sign of undesired tight coupling, use with care

ViewHelper Resources

Schema Resources