?
本文檔使用 PHP中文網(wǎng)手冊 發(fā)布
Smarty comes with several custom functions that you can use in the templates.
用戶可以使用 Smarty 自帶的一組自定義函數(shù).
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 用于在模板被執(zhí)行時為模板變量賦值.
Example 8-1. assign
|