News for hackers. Stuff that matters.
Re:Link: A fast and simple PHP Router by insky on Thursday May 29, 2014 @12:47PM (#7817147)
I guess you are asking why not just use the filesystem one-one like mapping url to file?

A benefit of routing is that you can have a single point of contact in your app: a front controller. And you can place your route config in one place.

This router also has RESTful routing, detecting HTTP methods upfront that correspond to a predictable method name in a named class.

There are no comments on this comment yet.