页面显示

我的代码
这是index.html 放在F:\xamppath\htdocs\webtp\Web\Admin\View\Index下

这是IndexController.class.php

我的F:\xamppath\htdocs\webtp\Web\Admin\View\Index\Page放了top.html、right.html、left.html、footer.html
我的index.html的路径改怎么写呢


回复讨论(解决方案)

你的index.html里的引入iframe的时候,把Page/top.html的 .html 去掉试试。

ThinkPHP 是单入口系统
从截图一可看到网站的根在 F:\xamppath\htdocs
网站的入口在 F:\xamppath\htdocs\webtp\index.php
因此直接链接框架页应是 /webtp/Web/Admin/View/Index/Page/top.html

建议你将框架页通过 php 处理进入

直接去掉.html是不行的

你用U()方法生成完整的到top.html的路径试试看

用U函数就OK了,太感谢了

09-18 17:58