[TYPO3-ect] Controller for Typo3

Elmar Hinz elmar.DOT.hinz at team.MINUS.red.DOT.net
Sun Mar 26 18:09:59 CEST 2006


Joerg Schoppet schrieb:
> Michael Scharkow Wrote:
> 
>>1. Joerg, where is your code?
> 
> 
> Hi Michael,
> 
> at the moment I'm implementing the view-part of the whole thing, but I don't find it usefull to put this in the TER, it's to early.
> If you like I can send you a pm with the implementation as soon as I can say "I cann work with this."
> 
> Regards
> Joerg

Hello Joerg,

please see the little MVC model I have uploaded to TER today. For the
view the principle is simple:

1.) The view is instantiated by the controller

2.) the controller gives an object to the view.
(Interface (Recursive)ArrayIterator)

3.) The view iterates the data to display them.

4.) The result is given back to the controller as a string.

How the view does this can be solved in different ways. I did it by
plain PHP.

Maybe you like to build a view that fits into this MVC model:


We can Imagine to types of Views:

A) Specialized views. They are specialized for a specific model
(application).

B) Generic views. They work for a broad range of models as long as the
models contain data matching standard schemes.

This schemes for B) could be handled in 2 ways:

B.1) Spezialized classes that implement the RecursiveArrayIterator
Interface. (Still to define)

B.2) Objects of the type tx_lib_data that are marked by containing
specific META data (TCA parts).


Until we have specificated B) the application specific views A) are
the only possible way.


Also the question how form parameters are to handle to the model is
open. The interface should surly be of the type ArrayIterator.


Regards


Elmar














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