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

Dmitry Dulepov dima at spamcop.net
Sun Mar 19 13:52:06 CET 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

Franz Holzinger wrote:
>> But I do not understand why one more variable is needed.
>> additionaHeaderData is meant to contain HTML already. Why ajax or any
>> other extension cannot use:
>> 	$GLOBALS['TSFE']['tx_ajax_pi1-js'] = $xjaxa->getJavaScript();
>> 	$GLOBALS['TSFE']['tx_ajax_pi1-css'] = '<link ... />';
>>
>> I already tried this in one my private extension, it works!
>>
>>  
>>
>         global $TSFE, $GLOBALS;
> ...
>         $GLOBALS['TSFE']['tx_ttproducts-js'] = $code;
> 
> Gives the error message:
> Fatal error: /Cannot use object of type tslib_fe as array/ in
> 
> However
> $GLOBALS['TSFE']->additionalHeaderData['tx_ttproducts-js'] = $code;
> works.

this is what I actually meant. Wrote in hurry...

Dmitry.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEHVP2RVcYnKJ8N6kRAshUAJ4ycg36j/MhBHwV3CqfaT4tUTOAYgCdE1+o
S8Oe2s+KQ6cy763tGf/4Q6Y=
=bKR5
-----END PGP SIGNATURE-----



More information about the TYPO3-team-core mailing list