| 991 |
lars |
1 |
# Built-in Functions
|
|
|
2 |
|
|
|
3 |
Smarty comes with several built-in functions. These built-in functions
|
|
|
4 |
are the integral part of the smarty template engine. They are compiled
|
|
|
5 |
into corresponding inline PHP code for maximum performance.
|
|
|
6 |
|
|
|
7 |
You cannot create your own [custom functions](../language-custom-functions/index.md) with the same name; and you
|
|
|
8 |
should not need to modify the built-in functions.
|
|
|
9 |
|
|
|
10 |
A few of these functions have an `assign` attribute which collects the
|
|
|
11 |
result the function to a named template variable instead of being
|
|
|
12 |
output; much like the [`{assign}`](language-function-assign.md) function.
|
|
|
13 |
|
|
|
14 |
- [{append}](language-function-append.md)
|
|
|
15 |
- [{assign} or {$var=...}](language-function-assign.md)
|
|
|
16 |
- [{block}](language-function-block.md)
|
|
|
17 |
- [{call}](language-function-call.md)
|
|
|
18 |
- [{capture}](language-function-capture.md)
|
|
|
19 |
- [{config_load}](language-function-config-load.md)
|
|
|
20 |
- [{debug}](language-function-debug.md)
|
|
|
21 |
- [{extends}](language-function-extends.md)
|
|
|
22 |
- [{for}](language-function-for.md)
|
|
|
23 |
- [{foreach}, {foreachelse}](language-function-foreach.md)
|
|
|
24 |
- [{function}](language-function-function.md)
|
|
|
25 |
- [{if}, {elseif}, {else}](language-function-if.md)
|
|
|
26 |
- [{include}](language-function-include.md)
|
|
|
27 |
- [{insert}](language-function-insert.md)
|
|
|
28 |
- [{ldelim}, {rdelim}](language-function-ldelim.md)
|
|
|
29 |
- [{literal}](language-function-literal.md)
|
|
|
30 |
- [{nocache}](language-function-nocache.md)
|
|
|
31 |
- [{section}, {sectionelse}](language-function-section.md)
|
|
|
32 |
- [{setfilter}](language-function-setfilter.md)
|
|
|
33 |
- [{strip}](language-function-strip.md)
|
|
|
34 |
- [{while}](language-function-while.md)
|
|
|
35 |
|