Are PHP MVC Controllers implemented by url rewrite? -
In a Java EE application, the controller can be presented by the servlet, which is currently using Java serverwork Can be implemented (JSF).
But there is no such sublink in PHP, so I think this URL should be rewritten?
So that every request should be directed to that controller? It can be done with mod_rewrite but most php has a front-controller mechanism that controls all. This way, through a file, all the controllers are specified in the URL.
Comments
Post a Comment