[TYPO3-core] FYI24 #15976: [version] Reference to global array $TCA without fetching from global scope

Steffen Kamper info at sk-typo3.de
Wed Oct 13 13:48:25 CEST 2010


Hi,

Xavier Perseguers schrieb:
> Hi Steffen,
> 
>> * I post this as FYI24, if you prefer a "global $TCA" instead of
>> $GLOBALS['TCA'].
>> I prefer the latter one, but first one might be more consistent over the
>> class methods.
> 
> global $TCA is more consistent but deprecated. Stick to $GLOBALS['TCA'] 
> for "new" code, just as you did.
> 

it's not deprecated. We decided to use $GLOBALS but if we have a huge 
amount of usage like $LANG-> we use globals then.

vg Steffen


More information about the TYPO3-team-core mailing list