资 源 简 介
Update in progress (2011-02-23)
About
`RouteMap` is an implementation of Rails like routes system for mapping URLs to controllers/actions and generating URLs. Useful even for code which doesn"t use MVC pattern. This particular implementation is inspired by Pylons" Routes2 system adapted to PHP5.
Basically, you map an URL to some method. e.g.
http://example.net/index.php?archive/2008/01/01 or
http://example.net/archive/2008/01/01 (with URL rewriting)
could map to a single method call
News::show("2008", "01", "01");
where "route" is represented by "archive/:year/:month/:day" and year, month, and day denote "route arguments".
For each route, you decide which action should be executed.
See Manual fo