PHP–ThinkPHP6.0模板常量的设置
博客说明
文章所涉及的资料来自互联网整理和个人总结,意在于个人学习和经验汇总,如有什么地方侵权,请联系本人删除,谢谢!
说明
ThinkPHP6.0的模板常量改动了很多,需要我们去配置
首先在配置文件中的view.php中,注意没有template.php配置文件了
'tpl_replace_string' => ['__ADMIN__' => '/shop/public/static/admin']

在html文件中使用就好啦
结果

ThinkPHP
以及勤劳的自己