首页> 实战笔录 >PHP开发笔记 >ThinkPHP ThinkPHP
tp6定义模板常量__PUBLIC__,__STATIC__
作者:小萝卜 2020-06-17 【 TP6 】 浏览 3753
简介tp6定义模板常量__PUBLIC__,__STATIC__等系统常量
tp6定义模板常量__PUBLIC__,__STATIC__等系统常量
在 config/view.php 配置文件下加入
'tpl_replace_string' => [
'__STATIC__' => '/static',
'__PUBLIC__' => '/public/static'
]
很赞哦! (2)
相关文章
- TP6报错:Non-static method think\Request::controller() should not be called statically
- tp5 报错variable type error: array怎么解决
- tp5实现文件下载,并对下载的文件重命名
- TP5.1模型关联写法
- TP3.2输入验证和I方法使用
- TP6/ThinkPHP6怎么获取表前缀
- TP6 TP5一键生成sitemap站点地图索引文件 代码分享
- TP6使用Jwt验证token时报错Cannot pass parameter 3 by reference
- tp5随机查询几条数据
- thinkphp utf8中文排序,根据汉字拼音首字母排序