URL Controller Mapping Strategies (PHP)

Posted by sunwukung on Stack Overflow See other posts from Stack Overflow or by sunwukung
Published on 2010-04-11T21:02:53Z Indexed on 2010/04/11 21:43 UTC
Read the original article Hit count: 223

Filed under:
|

This is kind of an academic question, so feel free to exit now. I've had a dig through Stack for threads pertaining to URL/Controller mapping in MVC frameworks - in particular this one:

http://stackoverflow.com/questions/125677/php-application-url-routing

So far, I can ascertain two practices:

1: dynamic mapping through parsing the URL string (exploded on '/')

2: pattern matching matching url to config file containing available routes

I wanted to get some feedback (or links to some other threads/articles) from folks regarding their views on how best to approach this task.

© Stack Overflow or respective owner

Related posts about url-routing

Related posts about php