Basic Syntax

PHP Smarty

Smarty - the compiling PHP template engine
Prev 来源:PHP中文社区 Next

Chapter 3. Basic Syntax

第三章.基本语法

Table of Contents[内容列表]
Comments[注释]
Functions[函数]
Attributes[属性]
Embedding Vars in Double Quotes[双引号里值的嵌入]
Math[数学运算]

Comments[注释]

{* Smarty *}

{* include the header file here *}
{include file="header.tpl"}

{include file=$includeFile}

{include file=#includeFile#}

{* display dropdown lists *}
<SELECT name=company>
{html_options values=$vals selected=$selected output=$output}
</SELECT>

Prev 来源:PHP中文社区 Home Next
Up