[Solar-talk] "Area" based front controller

Rodrigo Moraes rodrigo.moraes at gmail.com
Sun Jun 10 06:48:49 PDT 2007


On 6/10/07, Rodrigo Moraes wrote:
> A bit more, it will work the same
> if you use subdomains:
>
>    http://area1.domain.com

Just a little update: this front controller is a child of a previous
one I've been using for a while, which maps subdomains. So I extended
it from that controller, but now I thought that not everybody needs
the subdomains stuff and so I inverted the class hierarchy:
Tipos_Controller_Front_Subdomain now extends
Tipos_Controller_Front_Area. The second loads and maps 'site areas' to
apps, the first also allows to do the same for subdomains.

    http://dev.tipos.org/browser/branches/N/Tipos/Controller/Front/Subdomain.php

I removed the sql stuff as well per note from Andreas, as the mapping
doesn't need necessarily to be stored in a database. Any class that
provides the method used by the controller can be used to fetch the
area.

-- rodrigo


More information about the solar-talk mailing list