[TYPO3-mvc] Interfaces or abstract classes as action arguments?

Jochen Rau jochen.rau at typoplanet.de
Thu Jul 1 09:35:00 CEST 2010


Hi Dennis.

On 2010-06-30, Dennis Ahrens <dennis.ahrens at googlemail.com> wrote:
> what's about having a action that can handle each object of a parent 
> type given as interface or abtract class. While digging through the code 
> it seems to me as if this is not possible right now.
>
> What do you think of handing over the object class as GET/POST and using 
> this information for reconstruction - if the action just gives an 
> interface/abstract class as parameter description?

This should already work without passing the class via GET/POST. But you have to configure the class hierarchy via TS. Search this list for "Single Table Inheritance" for an example.

Regards
Jochen


More information about the TYPO3-project-typo3v4mvc mailing list