#21439explaining comments for loadTCA are confusing
Description
Let’s have a look into the comment of class.t3lib_div.php::loadTCA():
“Note: For the frontend this loads only ‘ctrl’ and ‘feInterface’ parts.“
But three rows later you find this one:
“Table name for which to load the full TCA array part into the global $TCA”
In first part you told, that only ctrl and feInterface will be loaded, but later you told us that ALL will be loaded.
Next:
Let’s have a look into the comment of class.tslib_fe.php::includeTCA():
“To load full TCA for the table, use t3lib_div::loadTCA($tableName) after calling this function.”
Why I have to load TCA twice. I just programmed three lines WITHOUT loadTCA and ALL additional columns will be showed:
$GLOBALS[‘TSFE’]->includeTCA();
$fe_users = $GLOBALS[‘TCA’][‘fe_users’];
print_r($fe_users);
(issue imported from #M12446)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.