[Solar-talk] the components saga continues!

Rodrigo Moraes rodrigo.moraes at gmail.com
Tue Dec 4 07:25:36 CST 2007


hey,

i've been continuing to working on a solution for modular apps
rendered inside a main page - the "components" or "widgets" idea we
talked before several times. interesting experiment, i must say, and
i'm very enamored to the idea,  so let me tell you what it is. :)

at the current stage, layouts are abstracted and the page controller
reads the current page specifications to render apps inside page
"slots". the page controller has no "action" or "view", but it still
calls a main action and, in the end, renders a main view defined by
the spec. this main app has access to $_info, $_query, etc, as in
Solar normal apps.

it is perhaps a very crazy and different idea at first sight, but if
you look closely it's all derived from the main idea behind
Solar_Controller_Page - the difference is that "layout" and "view" are
split, and the real apps are more or less independent. the page
controller became just a page/layout assembler. here they are:

    Page Assembler class:
http://tipos.googlecode.com/svn/trunk/lib/tipos/Tipos/N/App.php
    App base class:
http://tipos.googlecode.com/svn/trunk/lib/tipos/Tipos/Controller/App.php

if you have any interest on the subject, let me know if you hate the
idea too much, or any other thoughts. :)

-- rodrigo


More information about the Solar-talk mailing list