tp6加载静态资源文件

1.应用目录下新建config目录,在config目录下新建template.php文件

2.

return [
    'tplreplacestring' => [
        'STATIC'=>'/static',
    ],
];

3.将姿态资源文件放入public 目录下即可

发布了74 篇原创文章 · 获赞 72 · 访问量 7万+

猜你喜欢

转载自blog.csdn.net/weixin_43713498/article/details/104143868