[TYPO3-dev] Own Extbase TypeConverter - Where to put the Class File?

g4-lisz at tonarchiv.ch g4-lisz at tonarchiv.ch
Wed Sep 10 22:55:40 CEST 2014


On 09/10/2014 07:28 AM, Andreas Kiessling wrote:
> Am 10.09.14 KW: 37 00:49, schrieb g4-lisz at tonarchiv.ch:
>> If I write an TypeConverter - where do I put it in my extension
>> directory structure? Is it loaded automatically?
>>
>> $EXT_DIR/Classes/Property/TypeConverter ?
> have a look at ext_localconf.php from Extbase: you need to register your
> type converter.
> e.g.
> \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerTypeConverter('TYPO3\\CMS\\Extbase\\Property\\TypeConverter\\ArrayConverter');
>
> HTH,
> Andreas
>
Hi Andreas

Thank you for the hint! I will try this... Does the autoloader load this
class, when registered? I'm new to this namespace/autoload mechanism.
Well i will find out...

Cheers,
Till





More information about the TYPO3-dev mailing list