The PHP reserved {$smarty} variable can be used to access several special template variables. The full list of them follows.
The request variables such as $_GET, $_POST, $_COOKIE, $_SERVER, $_ENV and $_SESSION (see $request_vars_order and $request_use_auto_globals ) can be accessed as demonstrated in the examples below:
Note: For historical reasons {$SCRIPT_NAME} can be accessed directly, although {$smarty.server.SCRIPT_NAME} is the proposed way to access this value.
The current timestamp can be accessed with {$smarty.now}. The number reflects the number of seconds passed since the so-called Epoch (January 1, 1970) and can be passed directly to the date_format modifier for display purposes.
The output captured via {capture}..{/capture} construct can be accessed using {$smarty} variable. See section on {capture} for an example.
{$smarty} variable can be used to refer to loaded config variables. {$smarty.config.foo} is a synonym for {#foo#}. See the section on {config_load} for an example.
{$smarty} variable can be used to refer to {section} and {foreach} loop properties.
This variable is used for printing the left-delimiter and right-delimiter value literally. See {ldelim},{rdelim}.
See also Variables and Config Variables