\Phpcmf\Service::L('pinyin')->result("文本内容")
模板写法:
{php echo \Phpcmf\Service::L('pinyin')->result("文本内容");}
示例:
{php echo \Phpcmf\Service::L('pinyin')->result($t['title']);}
只转首字母
{php echo substr(\Phpcmf\Service::L('pinyin')->result($t['title']), 0, 1);}