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