[TYPO3-ect] my first view on lib / div
Elmar Hinz
elmar07 at googlemail.com
Thu Sep 27 22:10:20 CEST 2007
Hi Daniel,
thank you for testing lib/div and for feedback.
>
> I have some comments / questions and ideas:
>
> 1) use of subfolders in lib: Why not grouping the classes in folders
> like view / controller / model / lib ?
>
> ( Later add classes like widgets / data / ...)
It's historically grown. See suggestin for Beta Branch:
http://wiki.typo3.org/index.php/MVC_Framework/lib_div_Beta_Branch
> (which needs some time to understand in my opinion) I would like to set
> the model directly to the view - e.g.:
>
> $view->setResultObj($model);
Just do it. Use it your way. No problem. Regard the Pipeline of Processors
(PoP) as a feature not as a must. There are many alternative ways how to
use lib.
> - I was very interested in TYPO3 5.0. There they solve such things by
> having predefined widgets. (A widget itselft contains own MVC). This way
> it would be possible to have a resultbrowser by (for example):
Right. That's IMHO a PAC architecture. You can use lib that way.
http://t3flyers.wordpress.com/2007/08/06/the-presentation-abstraction-control-architecture-of-typo3/
http://en.wikipedia.org/wiki/Presentation-abstraction-control
In lib a PAC node exists either of a monolithic object (controller) or at
least of 3 objects (model, view, controller).
To connect it into the PoP an additional processor object is requiered. So a
PoP-widget has: model, view, controller plus processor.
See the resultbrowser as example. To use it outside PoP just drop the
processor and call it directly by the controller.
Regards
Elmar
More information about the TYPO3-team-extension-coordination
mailing list