為什么我的域名前面沒(méi)有http://localhost
?echo U('Index/user',array('id'=>5),'html',false,'localhost');
網(wǎng)頁(yè)顯示的是/zend/demo1009/index.php/Admin/Index/user/id/5.html
求大神
?echo U('Index/user',array('id'=>5),'html',false,'localhost');
網(wǎng)頁(yè)顯示的是/zend/demo1009/index.php/Admin/Index/user/id/5.html
求大神
2016-11-10
舉報(bào)
2017-03-23
根據(jù)官方3.2版本的開(kāi)發(fā)手冊(cè),這樣才能顯示域名
2016-11-11
ThinkPHP 里面的U方法是可以在里面指定域名的,你可以去看看TP的開(kāi)發(fā)手冊(cè)里面,里面有介紹。