URL路徑問題
http://localhost/index.php/Home/Index/user/id/1.html
為什么我路徑這里有個(gè)Home,我知道版本不太一樣,老師路徑里應(yīng)該會輸出http://localhost/index.php/lib/Index/user/id/1.html,為什么沒有Lib的?
另外控制器為什么可以傳參數(shù),model和view不可以?
http://localhost/index.php/Home/Index/user/id/1.html
為什么我路徑這里有個(gè)Home,我知道版本不太一樣,老師路徑里應(yīng)該會輸出http://localhost/index.php/lib/Index/user/id/1.html,為什么沒有Lib的?
另外控制器為什么可以傳參數(shù),model和view不可以?
2016-07-20
舉報(bào)
2016-08-15
他用的3.1的版本,你可以去官網(wǎng)下載,這樣更方便理解,
2016-07-21
嗯嗯 謝謝
2016-07-20
lib 就跟你的Home一樣屬于默認(rèn)訪問地址,可以不要用寫,直接寫http://localhost/index.php/Index/user/也可以訪問Home里面控制器里的index文件函數(shù)user你那個(gè)是U方法打印出來的地址吧?,