Previous Page
_exception()

Solar_View_Helper_Anchor
anchor()

Next Page
apiVersion()

anchor()

public string anchor ( Solar_Uri|string $spec, string $text default NULL, array $attribs default array () )

Returns an anchor tag or anchor href.

Parameters

  • (Solar_Uri|string) $spec: The anchor href specification.
  • (string) $text: A locale translation key.
  • (array) $attribs: Attributes for the anchor.

Returns

  • (string)

Description

Returns an anchor tag or anchor href.

If the $text link text is empty, will return only the href value (no attributes) instead of an <a href="">...</a> tag.