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