PHP Manual

PEAR Manual

Smarty Manual

PostgreSQL

MySQL Manual

Perl Manual

functions

each smarty tag either prints a variable or invokes some sort of function. functions are processed and displayed by enclosing the function and its attributes into delimiters like so: {funcname attr1="val" attr2="val"}.

example 3-3. function syntax

{config_load file="colors.conf"}  {include file="header.tpl"}  {if $highlight_name}     welcome, <font color="{#fontcolor#}">{$name}!</font> {else}     welcome, {$name}! {/if}  {include file="footer.tpl"}

both built-in functions and custom functions have the same syntax within templates.

built-in functions are the inner workings of smarty, such as {if}, {section} and {strip}. they cannot be modified.

custom functions are additional functions implemented via plugins. they can be modified to your liking, or you can add new ones. {html_options} and {popup} are examples of custom functions.