TP3.2 的include如何引用common模块下的view文件下的html文件作为公用文件
我在home模块引用这么写<include file=”Public/head”/>调用的却是Home模块下的head.html文件,如何用<include file=”Public/head”/>引用Common模块下的View下的head.html呢。求助。
<include file="Common@Public/head"/>
TP3.2 的include如何引用common模块下的view文件下的html文件作为公用文件
我在home模块引用这么写<include file=”Public/head”/>调用的却是Home模块下的head.html文件,如何用<include file=”Public/head”/>引用Common模块下的View下的head.html呢。求助。
<include file="Common@Public/head"/>
Common/common.php
//产生随机验证码 function random($length, $chars = '0123456789') { //随机生成的逻辑 return $hash; }
Tpl/index.html
{:random(5)}
得到的结果:9536