{$smarty.now|date_format:%y-%m-%d %h:%m:%s}
复制代码
2.{$smarty.const}可以直接访问php常量. 例如
{$smarty.const._my_const_val}
复制代码
3.{$smarty.capture}可以通过 {capture}..{/capture}结构 截取的输出可以使用{$smarty} 变量访问.
4.{$smarty.config}{$smarty}变量 可以访问已经加载的config变量例如 {$smarty.config.foo}就可以表示 {#foo#}
5.{$smarty.section}, {$smarty.foreach} {$smarty} 变量可以访问'section'和'foreach'循环的属性
6.{$smarty.template} 显示当前被处理的模板的名字
7.{$smarty.version}显示smarty模板的版本8.{$smarty.ldelim} 显示左分隔符9.{$smarty.rdelim} 显示右分隔符