
Updated calls to current Smarty API (register_function()/register_modifier()/register_block() -> registerPlugin(); assign_by_ref() -> assignByRef()). Fixed file includes in templates with quotes. Removed SmartyValidate.class.php includes. Still work in progress as some errors still appear!
2.3 KiB
2.3 KiB
Built-in Functions
Table of contents
- {$var=...}
- {append}
- {assign}
- {block}
- {call}
- {capture}
- {config_load}
- {debug}
- {extends}
- {for}
- {foreach},{foreachelse}
- {function}
- {if},{elseif},{else}
- {include}
- {include_php}
- {insert}
- {ldelim},{rdelim}
- {literal}
- {nocache}
- {section},{sectionelse}
- {setfilter}
- {strip}
- {while}
Smarty comes with several built-in functions. These built-in functions are the integral part of the smarty template engine. They are compiled into corresponding inline PHP code for maximum performance.
You cannot create your own custom functions with the same name; and you should not need to modify the built-in functions.
A few of these functions have an assign
attribute which collects the
result the function to a named template variable instead of being
output; much like the {assign}
function.