thinkphp 通过配置定义__PUBLIC__的替换规则

'TMPL_PARSE_STRING'=>array(

 '__PUBLIC__'=>'/Common';//更改默认的__PUBLIC__

'__JS__'=>'/Public/js/';//增加JS路径

'__UPLOADS__'=>'/Uploads';//增加上传路径

);

你可能感兴趣的:(thinkphp 通过配置定义__PUBLIC__的替换规则)