thinkphp3.2 添加自定义类似__ROOT__的变量

 1 thinkphp3.2 添加自定义类似__ROOT__的变量
 2 
 3 在config.php文件中
 4 return array(
 5   '' => '',
 6   'TMPL_PARSE_STRING'=>array( //添加自己的模板变量规则
 7     '__HOME__'=>__ROOT__.'/public/home',
 8   ),
 9   '' => '',
10 );
原文地址:https://www.cnblogs.com/l-zl/p/7515844.html