Project

General

Profile

Actions

Bug #21439

closed

explaining comments for loadTCA are confusing

Added by Stefan Froemken over 14 years ago. Updated over 9 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-11-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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)

Actions

Also available in: Atom PDF