This is a kind of academic question, so feel free to log out now. I have a Stack breakthrough for streams related to URL / Controller mapping in MVC frameworks - specifically this one:
PHP URL Routing
So far, I can establish two practices:
1: dynamic matching via parsing a string of URLs (exploded by '/')
2: matching the url pattern to the configuration file with available routes
I wanted to get feedback (or links to some other topics / articles) from people regarding their views on how best to approach this task.
php url-routing
sunwukung
source share