insert

PHP Smarty

Smarty - the compiling PHP template engine
Prev 来源:PHP中文社区 Chapter 7. Built-in Functions[第七章.内建函数] Next

insert

Attribute Name Type Required Default Description
name string Yes n/a The name of the insert function (insert_name)
assign string No n/a The name of the template variable the output will be assigned to
script string No n/a The name of the php script that is included before the insert function is called
[var ...] [var type] No n/a variable to pass to insert function
属性 类型 是否必须 缺省值 描述
name string Yes n/a 插入函数的名称
assign string No n/a 该属性指定一个变量保存待插入函数输出
script string No n/a
[var ...] [var type] No n/a 传递给待插入函数的本地参数
{* example of fetching a banner *}
{insert name="getBanner" lid=#banner_location_id# sid=#site_id#}

Prev 来源:PHP中文社区 Home Next
include_php Up if,elseif,else