[TYPO3-core] RFC: #11407: [Feature] Allow type="user" in user setup
Steffen Kamper
info at sk-typo3.de
Wed Jun 24 21:39:40 CEST 2009
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
More information about the TYPO3-team-core
mailing list