Attention
TYPO3 v9 has reached its end-of-life September 30th, 2021 and is not maintained by the community anymore. Looking for a stable version? Use the version switch on the top left.
You can order Extended Long Term Support (ELTS) here: TYPO3 ELTS.
$GLOBALS¶
Note
Variables in italics may be set in a script prior to the bootstrap process so they are optional.
Note
To make the table below a bit more compact, namespaces were left out. Here are the fully qualified class names referred to below:
"SystemEnvironmentBuilder" =
\TYPO3\CMS\Core\Core\SystemEnvironmentBuilder
"Bootstrap" =
\TYPO3\CMS\Core\Core\Bootstrap
"PackageManager" =
\TYPO3\CMS\Core\Package\PackageManager
Global variable |
Defined in |
Description |
Avail. in FE |
---|---|---|---|
$GLOBALS['TYPO3_CONF_VARS'] |
|
TYPO3 configuration array. Please refer to file
|
Yes |
$GLOBALS['TYPO3_LOADED_EXT'] |
|
Array with all loaded extensions listed with a set of paths. You can
check if an extension is loaded by the function
|
Yes |
$GLOBALS['EXEC_TIME'] |
|
Is set to Note Should not be used anymore, rather use the DateTime Aspect. |
Yes |
$GLOBALS['SIM_EXEC_TIME'] |
|
Is set to Note Should not be used anymore, rather use the DateTime Aspect. |
Yes |
$GLOBALS['PAGES_TYPES'] |
|
See Page Types |
(occasionally) |
$GLOBALS['TCA'] |
|
See TCA Reference |
Yes, partly |
$GLOBALS['TBE_MODULES'] |
|
The backend main/sub-module structure. See section elsewhere plus
source code of class |
(occasionally) |
$GLOBALS['TBE_STYLES'] |
|
Contains information related to BE skinning. |
(occasionally) |
$GLOBALS['T3_SERVICES'] |
|
Global registration of services. |
Yes |
$GLOBALS['T3_VAR'] |
|
Space for various internal global data storage in TYPO3. Each key in this array is a data space for an application. Keys currently defined for use is: ['callUserFunction'] + ['callUserFunction_classPool']: Used by
['RTEobj'] : Used to hold the current RTE object if any. See
['ext'][ extension-key ] : Free space for extensions. |
Yes |
$GLOBALS['BE_USER'] |
|
Backend user object. See Backend User Object. |
(depends) |
$GLOBALS['TBE_MODULES_EXT'] |
[In |
Used to store information about modules from extensions that should be included in "function menus" of real modules. See the Extension API for details. |
(occasionally) |
$GLOBALS['TCA_DESCR'] |
[ |
Can be set to contain file references to local lang files containing
|
No |
Exploring Global Variables¶
Many of the global variables described above can be inspected using the ADMIN TOOLS > Configuration module.
Warning
This module is always viewed in the BE context. Variables defined only in the FE context will not be visible there.
Note
This module is purely a browser. It does not let you change values.
It also lets you browse a number of other global arrays. Just be curious and investigate!