©
This document uses PHP Chinese website manual Release
Smarty comes with several custom functions that you can use in the templates.
用户可以使用 Smarty 自带的一组自定义函数.
Attribute Name | Type | Required | Default | Description |
---|---|---|---|---|
var | string | Yes | n/a | The name of the variable being assigned |
value | string | Yes | n/a | The value being assigned |
属性 | 类型 | 是否必须 | 缺省值 | 描述 |
---|---|---|---|---|
var | string | Yes | n/a | 被赋值的变量名 |
value | string | Yes | n/a | 赋给变量的值 |
assign is used for assigning template variables during the execution of the template.
assign 用于在模板被执行时为模板变量赋值.
Example 8-1. assign
|