* www/Template/User/head.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<title>[nav]</title>
<!-- ... -->
</head>
<body>
<!-- ... -->
* www/Template/User/fund.html
<include file="user:header" nav="资金明细"/>
nav="资金明细"
公共snippet模板页面 [nav] 被 "资金明细" 替换
模板if foreach标签
sample#1:
<if condition="($name eq 1) OR ($name gt 100) "> value1
<elseif condition="$name eq 2"/>value2
<else /> value3
</if>
sample#2:
在控制器方法
$smsEnabled = true;
$this->assign('smsEnabled', $smsEnabled);
<if condition="($smsEnabled)">
<!-- ... -->
</if>
foreach用法:
<foreach name="list" item="vo" >
{$key}|{$vo}
</foreach>