a

1.0 1.1 1.2 1.3

a — Outputs an html <a> tag

Description

<?php
a(string $href, array $rest = [])

Examples

Example #1

index.tpl
{a $url class="external"}Dwoo{/a}

The above example will output:

<a href="dwoo.org" class="external">Dwoo</a>

Example #2, short syntax

index.tpl
{a $url /}

The above example will output:

<a href="dwoo.org">dwoo.org</a>