TPLix

No results for ""

A

2 min read Jun 2, 2026
--- title: a written: Khawar Shahzad autoseo: enabled: true theme: learn2 child_type: default admin: children_display_order: collection visible: true ---

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>

Leave a Comment

Not published. Used to notify you on approval.

Comments are moderated before appearing.