skymvc模板视图函数扩展说明
例 fun($str,a,b)
{$str|fun:a:b}
1.字数截取 cutstr($string, $length, $dot = ' ...')
$str|cutstr:18:...
2.时间格式化date
2016-03-29 12:12:112
{$dateline|date:Y-m-d H:i:s}
3.timeago 多久之前
5分钟前
{$dateline|timeago}
6.任意函数调用
<?php function myfun($a,$b,$c){ return $a+$b+$c; } ?>
{fun:myfun($a,$b,$c)}