課程
/后端開發(fā)
/ThinkPHP
/快速入門ThinkPHP 5.0--基礎(chǔ)篇
不能通過http://localhost/index/index/index訪問方法,什么原因
2018-11-12
源自:快速入門ThinkPHP 5.0--基礎(chǔ)篇 2-4
正在回答
不要?jiǎng)h除application\index 這個(gè)目錄,直接進(jìn)去改這個(gè)目錄下的 Index.php就可以直接訪問了,我是不是很機(jī)智
因?yàn)閠hinkPHP定義了路由,避免了前面版本中的地址沖突
舉報(bào)
ThinkPHP5已發(fā)布多時(shí),想了解ThinkPHP5的新特性嗎?老司機(jī)帶你馬上出發(fā)~
2 回答訪問http://localhost:/index/Index/index失敗
2 回答http://localhost/admin/Index/index 為什么訪問出現(xiàn)404
3 回答為什么我訪問localhost/tp5/public可以訪問 但是localhost/tp5/public/index/Index/Index就出現(xiàn)404錯(cuò)誤呢
1 回答為什么http://localhost/tp5/public/admin/index/common出來是this is common Index index
2 回答http://localhost/admin/Index/index
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2019-02-18
不要?jiǎng)h除application\index 這個(gè)目錄,直接進(jìn)去改這個(gè)目錄下的 Index.php就可以直接訪問了,我是不是很機(jī)智
2018-11-13
因?yàn)閠hinkPHP定義了路由,避免了前面版本中的地址沖突