入口綁定對于index和admin這兩個模塊都是不行的嗎
創建api.php的入口文件,可以用“localhost/api.php/index/demo”訪問到api模塊下的demo方法
但是,為什么不能用 “localhost/index/index/demo”訪問到index模塊下的demo方法,
只能寫成完全的"localhost/index.php/index/index/demo",或者"localhost/index/index/demo"
創建api.php的入口文件,可以用“localhost/api.php/index/demo”訪問到api模塊下的demo方法
但是,為什么不能用 “localhost/index/index/demo”訪問到index模塊下的demo方法,
只能寫成完全的"localhost/index.php/index/index/demo",或者"localhost/index/index/demo"
2017-10-08
舉報
2017-10-08
綁定后相當于開始就會首先去這個模塊,像你這綁定api, ?localhost/(api.php)/index/demo可以不加api.php,你想去別的模塊就要別的模塊的PHP。我的想法你參考看看,有誤指正。