[TYPO3] $GLOBALS['TCA'] seems to be empty on static function call in FE-Extension
Johannes Konert
johanneskonert at gmx.de
Tue Jul 18 18:06:33 CEST 2006
> Use this instead:
>
> global $TCA;
>
> and add
>
> debug($TCA['pages'])
>
> after loadTCA. See what you have. You may need to add
>
> no_cache=1
>
> to url to see debug output.
>
> Dmitry.
Thanks Dmitry. It showed me, that indeed TCA is not loaded completely
with t3lib_div::loadTCA(). You can see the debug here:
http://www.studimate.de/1.png
I never thought about loadTCA() actually not loading the complete TCA.
Too stupid. Christoph gave me the needed hint:
$GLOBALS['TSFE']->includeTCA();
That loads the TCA as I know it ;-)
My goodness, that was a hard work to find out.
Thanks for helping.
Cheers,
Johannes
More information about the TYPO3-english
mailing list