Are PHP MVC Controllers implemented by url rewrite?
问题 The controller in a Java EE application may be represented by a servlet, which may be currently implemented using JavaServer Faces (JSF). But in PHP there is no such servlet,so I guess is it implemented by url rewrite? So that every request is directed to that controller? 回答1: It can be done with mod_rewrite but mostly in php there is a front-controller mechanisim which does all controlling through a single file. In this way, all controllers are specified in the url. See this for more