Smarty
Last updated
Was this helpful?
Article Topics: Smarty
Smarty is a templating engine used by several Too Much Media products.
The Smarty templates in NATS are not parsed by PHP for security reasons. In NATS, you can enable linkcodes by changing links from,
?<?=(!empty($_REQUEST['nats']) && !preg_match('/[\'\"<>()\\\+\[\]]/', $_REQUEST['nats']))?'&nats='.$_REQUEST['nats']:''?>to,
?nats={$nats_code}In NATS, you can use the nats_encode or nats_list_linkcodes functions.
Place inline JavaScript or CSS between Smarty's {literal} and {/literal} tags.
To list array values in smarty templates:
{$var|@debug_print_var}
This will print out the values of Smarty array $var, similar to using print_r in php.
Smarty Homepage - The Smarty homepage and function reference
Last updated
Was this helpful?
Was this helpful?