[Solar-talk] request: split the front controller, add a mapper
Rodrigo Moraes
rodrigo.moraes at gmail.com
Tue Nov 7 05:41:03 PST 2006
> On 11/5/06, Travis Swicegood wrote:
> Just something from my point of view here. I'd add in some sort of use
> case showing how this is used, what it accomplishes, etc.
In the mean time, if you have doubts about how to use it, there is a
descriptive manual here:
http://framework.zend.com/manual/en/zend.controller.rewriterouter.html
... since the Tipos_Controller_Router is port from the
Zend_Controller_RewriteRouter. :-)
The port simplifies Zend's code a lot and adds the possibility to set
Routes using a array, so routes (or "URL maps") can be built passing a
config to Solar::factory(), and thus can be defined in Solar config.
I hope the Router class is well documented and clear enough, but there
is some clean up and documentation to be done in the Route class (it
is a copy from the Zend incubator with almost no changes).
I think it'll need a helper to do a "reverse mapping" to generate
links based on the active route - so links created using action() are
correctly "translated" by the router.
Let me know if you have problems or suggestions, or if you have
interest in such functionality.
rodrigo
More information about the solar-talk
mailing list