[TYPO3-core] RFC: 0002901: API needed to write HTML tags into the FE header tags directly

René Fritz rene at typo3.org
Fri Mar 17 16:40:43 CET 2006


>         global $TSFE, $GLOBALS;
> ...
>         $GLOBALS['TSFE']['tx_ttproducts-js'] = $code;

Sorry, but do you know what you're doing?

$GLOBALS gives you access to global variables. Using
global $GLOBALS;
has no effect. It is useless.

$GLOBALS['TSFE'] is an object! Any methods or variables inside an object have 
to be accessed by
$GLOBALS['TSFE']->myVariable 
and not
$GLOBALS['TSFE']['myVariable']

That are really PHP basics!! I don't claim to know everything about PHP but 
having such discussions here, costs too much time and is not the right place.

René

-- 
René Fritz
TYPO3 Association - Active Member
http://association.typo3.org/



More information about the TYPO3-team-core mailing list