mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-15 15:09:51 +01:00
- removing support for $cache_attrs for registered plugins,
- removing the undocumented {make_nocache} tag and the deprecated {insert} tag and associated code
- removing support for a compile_id property on include tags.
Fixes a bug in extends: resources by propagating the nocache-hashes between a master template and it's subtemplates in \Smarty\Template::_subTemplateRender. This might need further improvement.
2.2 KiB
2.2 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}
- {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.