[TYPO3-core] RFC: #11407: [Feature] Allow type="user" in user setup
Jeff Segars
jsegars at alumni.rice.edu
Wed Jun 24 21:51:11 CEST 2009
Steffen Kamper wrote:
> Hi,
>
> Francois Suter schrieb:
>> Hi,
>>
>> Wouldn't it be better to use t3lib_div::makeInstance() and then call
>> the function rather than using call_user_func()? That way this could
>> benefit from the autoloader feature, rather that having to require the
>> class file all the time.
>>
>
> why instanciate? No need for it, can even be a static call.
> But the call_user_func from t3lib_div should be used, same like in
> tceforms:
> return
> t3lib_div::callUserFunction($PA['fieldConf']['config']['userFunc'],$PA,$this);
>
>
> The autoloader helps for finding the class if not in includelibs anyway.
>
> vg Steffen
I was just double checking tceforms before I wrote a message suggesting
callUserFunction() :)
I'm all for keeping it consistent with tceforms...
More information about the TYPO3-team-core
mailing list