$GLOBALS

TYPO3_CONF_VARS
Path

$GLOBALS

Type

array

Defined

typo3/sysext/core/Configuration/DefaultConfiguration.php

Frontend

yes

TYPO3 configuration array. Please refer to the chapter TYPO3_CONF_VARS where each option is described in detail.

Most values in this array can be accessed through the tool Admin Tools > Settings > Configure Installation-Wide Options.

TCA
Path

$GLOBALS

Type

array

Defined

\TYPO3\CMS\Core\Core\Bootstrap::loadExtensionTables()

Frontend

Yes, partly

See TCA Reference

T3_SERVICES
Path

$GLOBALS

Type

array

Defined

SystemEnvironmentBuilder::initializeGlobalVariables()

Frontend

Yes

Global registration of services.

TBE_MODULES
Path

$GLOBALS

Type

array

Defined

typo3/sysext/core/ext_tables.php

Frontend

(occasionally)

The backend main/sub-module structure. See section elsewhere plus source code of class \TYPO3\CMS\Backend\Module\ModuleLoader which also includes some examples.

TBE_MODULES_EXT
Path

$GLOBALS

Type

array

Defined

[In ext_tables.php files of extensions]

Frontend

(occasionally)

Used to store information about modules from extensions that should be included in "function menus" of real modules. See the Extension API for details.

This variable may be set in a script prior to the bootstrap process so it is optional.

TBE_STYLES
Path

$GLOBALS

Type

array

Defined

typo3/sysext/core/ext_tables.php

Frontend

(occasionally)

Contains information related to BE skinning.

TYPO3_USER_SETTINGS
Path

$GLOBALS

Type

array

Defined

typo3/sysext/setup/ext_tables.php

Defines the form in the User Settings.

PAGES_TYPES
Path

$GLOBALS

Type

array

Defined

typo3/sysext/core/ext_tables.php

Frontend

(occasionally)

$GLOBALS['PAGES_TYPES'] defines the various types of pages (doktype) the system can handle and what restrictions may apply to them.

Here you can define which tables are allowed on a certain page types (doktype).

The default configuration applies if the page type is not defined otherwise.

BE_USER
Path

$GLOBALS

Type

TYPO3CMSCoreAuthenticationBackendUserAuthentication

Defined

\TYPO3\CMS\Core\Core\Bootstrap::initializeBackendUser()

Frontend

(depends)

Backend user object. See Backend user object.

EXEC_TIME
Path

$GLOBALS

Type

int

Defined

SystemEnvironmentBuilder::initializeGlobalTimeTrackingVariables()

Frontend

yes

Is set to time() so that the rest of the script has a common value for the script execution time.

Note

Should not be used anymore, rather use the DateTime Aspect.

SIM_EXEC_TIME
Path

$GLOBALS

Type

int

Defined

SystemEnvironmentBuilder::initializeGlobalTimeTrackingVariables()

Frontend

yes

Is set to $GLOBALS['EXEC_TIME'] but can be altered later in the script if we want to simulate another execution-time when selecting from e.g. a database (used in the frontend for preview of future and past dates)

Note

Should not be used anymore, rather use the DateTime Aspect.

Exploring global variables

Many of the global variables described above can be inspected using the module System > Configuration.

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 as well as values defined in other syntaxes including YAML.

../_images/GlobalValuesConfiguration.png

Viewing the $GLOBALS['TYPO3_CONF_VARS] array using the Admin Tools > Configuration module