ThinkPHP的大U輸出的完整路徑,我這一直輸出不對
github上應(yīng)該是3.2的版本,使用U輸出:
echo U('Index/user',array('id'=>1),'html',false,'localhost'), '<br>';
一直輸出:
/thinkphp/index.php/Home/Index/user/id/1.html
視頻上是完整的路徑啊,無法訪問啊,求解
github上應(yīng)該是3.2的版本,使用U輸出:
echo U('Index/user',array('id'=>1),'html',false,'localhost'), '<br>';
一直輸出:
/thinkphp/index.php/Home/Index/user/id/1.html
視頻上是完整的路徑啊,無法訪問啊,求解
2016-11-22
舉報
2018-05-22
有可能是你的localhost要改成localhost:8080
2017-10-25
3.2版本的U方法中的true/false是 是否顯示域名的意思
2016-11-23
'<br/>'前面是個.不是, ? ? 就看出了這一個問題。