$this->success('分配权限成功', U('showlit'));
结果页面出现:404Not FoundThe requested URL /tplearn/shop/Admin/Role/showlit.html was not found on this server.
检查发现U('showlist')返回的url为string '/tplearn/shop/Admin/Role/showlit.html' (length=37), 返回的不应该是完整的url地址吗?比如'web.yangtoude.com/tplearn/shop/index.php/Admin/Role/showlist.html'?难道说U函数不能通过传递方法名来获得完整的url地址吗?
我觉得这好像是U函数的问题呀,即便是这么写U('/Admin/Role/showlit'),返回的也不是完整的url地址.
注:tp版本为3.2.3.
'URL_MODEL' => 2
测试环境为本地. 最佳答案
