Common/common.php

//产生随机验证码
function random($length, $chars = '0123456789')
{
//随机生成的逻辑
return $hash;
}

Tpl/index.html

{:random(5)}

得到的结果:9536

05-19 13:33