[Solar-talk] request: split the front controller, add a mapper

Rodrigo Moraes rodrigo.moraes at gmail.com
Sat Nov 4 00:12:36 PST 2006


On 11/4/06, Rodrigo Moraes wrote:
> Thoughts? Other ideas?

Hm, sorry. I had another one: leave the front controller as it is and
inject a router result in display(). Funny, I've never seen this
possibility:

    $front = Solar::factory('Solar_Controller_Front');
    $router = Solar::factory('Tipos_Controller_Router');
    $front->display($router->route());

One question: Solar_Uri explodes the path in setPath(). Is there a
variable where the path is kept intact? I mean, the path string
instead of an array. It is useful for mappings. I'm imploding
$uri->path back to a string; it would be useful to keep the path
string in a $pathinfo Solar_Uri property or something.

thanks,
rodrigo

---------------------------------------------------------------------
Solar has now a Community Wiki: solarphp.org
---------------------------------------------------------------------
Join the #solarphp IRC channel on freenode.org
---------------------------------------------------------------------


More information about the solar-talk mailing list