[Typo3-dev] Loading TCA
René Fritz
r.fritz at colorcube.de
Mon Jan 31 15:17:05 CET 2005
Am Montag, 31. Januar 2005 13:37 schrieb Kraft Bernhard:
> Hallo List,
>
> In one of my BE Module Extensions I loop trough $TCA with something like:
> foreach ($GLOBALS['TCA'] as $table => $ar) {
> t3lib_div::loadTCA($table);
> // Do something with $GLOBALS['TCA'][$table]
> }
>
> the problems is that on some installations it seems as there is nothing
> in the TCA array.
>
> How can I make sure the basic TCA array containing all existent tables
> is available ?
>
>
> greets,
> Bernhard
In the frontend you could use
$GLOBALS['TSFE']->includeTCA();
but in the backend including TCA should be done already in typo3/init.php
which is included by all modules.
Don't know what went wrong with your module.
René
--
COLORCUBE
digital media lab
www.colorcube.de
More information about the TYPO3-dev
mailing list