a

a — The a tag generates an HTML anchor (<a>) element.tag

Using PHP function

a(string $href, array $rest = [])
  • href: the target URI where the link must point
  • rest: any other attributes you want to add to the tag can be added as named parameters
How easy it is to use and generate in .tpl files, with additional parameters or using the short syntax, is shown below:
Example #1
index.tpl
{a $url class="external"}Tplix{/a}

The above example will output:

<a href="Tplix.org" class="external">Tplix</a>
Example #2, short syntax
index.tpl
{a $url /}

The above example will output:

<a href="Tplix.org" class="external">Tplix.org</a>