1.public/index.php,默认的入口文件
2.Bootstrap.php,做一些初始化的工作
3.conf/application.ini,此ini并非FPM使用的ini,是约定的Yaf需要加载的默认配置文件
5.controllers/Error.php,异常控制志类,未被Catch住的异常,都会流转到这个文件中的类控制
http://$domain/$module/$controller/$action?roomid=10001
其中 $module 默认为index,默认情况下可以省略,因此上述url等同于以下
http://$domain/$controller/$action?roomid=ab
会请求controllers文件夹下的$controller.".php"文件中的$controller."Controller"类的$action."Action"方法
例:
http://testyaf.tv/yafexample/test?roomid=10001
会请求controllers文件夹下的Yafexample.php文件中的YafExampleController类的testAction方法