thinkphp3.2 redirect错误

浏览:981 发布日期:2017/03/01 分类:技术分享 关键字: redirect错误
我的应用分组情况是:
-web
---Home
-------Controller
--------------IndexController.class.php
---Test
-------Controller
--------------RecordController.class.php

我在Record控制器里用redirect('Home/Index',3,'正在跳转<a href="Home/Index">Home/Index</a>请稍候');
跳转报错,跳转到http://test.bybon.com/Test/Record/Home/Index#这个地址是不存在的;
然后我用redirect('/Home/Index',3,'正在跳转<a href="Home/Index">Home/Index</a>请稍候');
跳转正确。
跨分组的这种使用如果遇到这个问题的同学可以参考一下。
最佳答案
评论( 相关
后面还有条评论,点击查看>>