[Solar-talk] Somehow nested controllers / Support for multiple applications

Antti Holvikari anttih at gmail.com
Wed Jun 6 09:07:18 PDT 2007


On 6/6/07, Rodrigo Moraes <rodrigo.moraes at gmail.com> wrote:
> On 6/6/07, Andreas Ravnestad wrote:
> > Also note that this is the third time I am running into this problem.
> > Previously I solved it with using dynamic subdomains and some nifty
> > hacks, but this is not possible this time. It seems to me this must be a
> > very common problem.
>
> I think it is. As we were talking on IRC, Antti has in Abovo the
> concept of 'modules' - which are sub-apps placed inside an app folder.
> Correct me if I'm wrong, Antti - they extend an app an allow to
> organize app-families inside folders - so you can have app1/page1 and
> app2/page1 with two different page1 controllers.
>
> Abovo's front controller [1] basically adds one more level to an app
> folder, allowing to organize some kind of 'sub-apps'. I think it is an
> useful idea.
>
> (but perhaps I got it completelly wrong)

Your right Rodrigo, except that it's the other way around (module >
app) :-). A module in Abovo is a group of apps (app = one page
controller). All of the dirs in Abovo/App[1] are modules. Every app
needs to extend one module. This way you can share logic among a
module.

I'm just about to rewrite the front controller. I'm happy to answer if
you have any other questions about my implementation.

[1] http://abovo.googlecode.com/svn/trunk/Abovo/App/


-- 
Antti Holvikari <http://phphalo.com>


More information about the solar-talk mailing list