Smarty自定义函数
发布时间:2016-08-05 13:52:58 来源:51推一把
【摘要】用户可以使用 Smarty 自带的一组自定义函数
Smarty自定义函数
自定义函数
assign
counter
cycle
debug
eval
fetch
html_checkboxes
html_image
html_options
html_radios
html_select_date
html_select_time
html_table
math
mailto
popup_init
popup
textformat
用户可以使用 Smarty 自带的一组自定义函数。
assign 用于在模板被执行时为模板变量赋值.
#样例
{assign var="name" value="Bob"}
The value of $name is {$name}.
OUTPUT:
The value of $name is Bob.
自定义函数
assign
counter
cycle
debug
eval
fetch
html_checkboxes
html_image
html_options
html_radios
html_select_date
html_select_time
html_table
math
mailto
popup_init
popup
textformat
用户可以使用 Smarty 自带的一组自定义函数。
assign 用于在模板被执行时为模板变量赋值.
#样例
{assign var="name" value="Bob"}
The value of $name is {$name}.
OUTPUT:
The value of $name is Bob.