[TYPO3-mvc] How to extend a model class from within another extension?

Franz Koch typo3.RemoveForMessage at elements-net.de
Mon Jan 18 00:38:36 CET 2010


Hi again,

>> do you mean overwriting the model class magic __set and __get methods,
>> calling the parent methods, and if nothing was returned, implement a
>> custom routine, to fetch fields of the TCA?
>
> Maybe something like this (untested):
>
> public function __call($methodName, $arguments) {
..
> }

Unless I haven't overseen something it doesn't work because the model 
doesn't anywhere have the raw DB data available - only the predefined 
properties that got filled by extbase. So you might either hack your 
base model or start implementing that feature in extbase.

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list