thinkphp5.0 资源文件加载import load问题

浏览:3205 发布日期:2016/04/02 分类:求助交流 关键字: thinkphp5.0 import load css js
环境我使用的是wamp web程序在 wamp/www/test/

我建了一个虚拟目录
http://localhost/t 指向的是 wamp/www/test/public 入口文件所在文件夹
css文件 放在 wamp/www/test/public/Public/template/css 中
在模板文件中依次使用了下面的资源文件加载方式{import type='css' file="template.css.test" /}{load href="/Public/template/css/test.css"/}{css href="/Public/template/css/test.css"/}然后问题就来了 这几种方法载入的都是
http://localhost/Public/template/css/test.css
而正确的应该是
http://localhost/t/Public/template/css/test.css


以前3.2 用的都是
<link href="__PUBLIC__/template/css/test.css" rel="stylesheet">
不存在这个问题
求助大神指点一下 问题到底出在哪
最佳答案
评论( 相关
后面还有条评论,点击查看>>