[Solar-talk] "Forwarding" Controller

Rodrigo Moraes rodrigo.moraes at gmail.com
Tue Oct 10 04:40:01 PDT 2006


On 10/10/06, Matt M. wrote:
> I've got a very simlified version of what I call a "forwarding" controller,
> and I think it'd be very easy to implement into Solar. I don't have the time
> to do this myself, but if any of you were interested in seeing how it works
> I could post the code and/or examples. Basically, there is a single entry
> point, and anything added to the path_info string is inspected as a possible
> controller. It allows you to do routing and nesting. A url like:
> /admin/product/54 would create a root controller, an admin controller and a
> product controller.

Hi Matt,
I'm interested to know more about it. I'm not sure how the three
controllers in this example would be tied. But if it is simple and
have a reasonable flexibility, it is certainly worth exploring the
concept.

> What do you guys think?

I have been working on a Zend_RewriteRouter port and basically, after
all clean up (ZF is a bit over-designed, imho), I think that it would
be very nice to split Solar_Controller_Front, using it to wrap a
Router and a Dispatcher. In this case, it seems that you could
implement your "forwarding" controller by extending or defining new
classes for routing / dispatching.

Please let us see your examples! :)

rodrigo


More information about the solar-talk mailing list