訪問: http://127.0.0.1/user/info
在 test 目錄 下 app 目錄下 即 -> test/app 下創(chuàng)建類文件 user.class
class user { public function info() { echo 'this page is user/info'; } }
如果多層目錄如何解決?
訪問: http://127.0.0.1/api/v1/user/info
對(duì)應(yīng)目錄為 test/app/api/v1/user.php
class user { public function info() { echo 'this page is user/info'; } }
怎么樣? 簡(jiǎn)單快捷吧! coffee 就是如此任性!
更多建議: