变量调节器的几个函数:
首字大写:capitalize <{$cap|capitalize}>
字符计数 :count_characters 参数true 决定 是否计算空格 <{$cap|count_characters:true}>
连接字符串 :cat 参数为连接的字符串 <{$cap|cat:"*******"}>
计算变量的段数 count_paragraphs <{$cap|count_paragraphs}>会输出一个数字,为该变量段数
计算变量的句数 count_sentences <{$cap|count_sentences}>
计算变量的单词数 count_words <{$cap|count_words}>
格式化日期 {$smarty.now|date_format:"%A, %B %e, %Y"}
{$smarty.now|date_format:"%H:%M:%S"} 参数为输出日期的格式