[TYPO3-ect] lib supports Presentation-Abstraction-Control (PAC) WAS: Subcontrollers

Elmar Hinz elmar07 at googlemail.com
Mon Aug 6 17:18:24 CEST 2007


Hi Daniel,

> At first it looks like the widget-pattern (1 view + 1 controller + 1
> model). Struts does use this (HTMLbutton + JSPview + Struts mapping +
> Java class with function actionPerformed).
> 

It's probaly equal or at least very simliar. Can struts "widgets" be nested
like TS objects?

> Very important is that connections between the subcontrollers/ "agents"
> are VERY simple in standard-case, because just so many developers will
> use it. We can achieve this, when the standard-configuration is done in
> TypoScript and just needs to be overwritten when one needs more. Or we

It's already implemented it that way. I should say, there wasn't much to
implement. The interface to the subcontrollers is in fact the same as that
to the main controller. Every main controller can be used as a sub and vice
vesa.

$returnString = main($input, $configurations, $context=NULL,
$parameters=NULL);

Once context and parameters have been build, they can be given to the sub,
so there is no need to build them a second time.

It could be used for example to very naturally implement FE forms in IRRE
style.

> can use pre-configured code:
> 
> The kickstarter__mvc could have some selectable standard-configuration,
> so that it's easier to jump into the lib/div/MVC/PAC - world:
> 
> * a) a list with search-widget (view=a list of apples and a search-box,
> control=search function and database-query, model=list of apples and
> useage) 
> * b) rich content (view=AJAX'ed view of content e.g. in a 
> tab-view, control=an ajax-framework, model=list of tt_content - texts)
> * c) main with 2 plugins (main=example "dr_wiki", subcontroller
> 1="Search", subcontroller 2="RecentChanges")
> * d) main with 2 services (main=example "cal", subcontroller
> 1="CategoryService", subcontroller 2="RightsService"
> * e) ... (many more possible)
> 
> What do you think about that way?

Yes, the kickstarter can probably offer more Ruby on Rails like feature
using subcontrollers. I have to read about RoR, what makes it that special
amoung other MVC frameworks.

Regards

Elmar
























More information about the TYPO3-team-extension-coordination mailing list