[TYPO3-dev] TYPO3 6.2 and TYPO3_db* constant

Xavier Perseguers xavier at typo3.org
Fri Mar 14 16:06:58 CET 2014


Hi,

> TYPO3 6.2 doesn't seem to set the  TYPO3_db* constants any more.
> How can we access the database host/name/credentials instead from an
> extension?

Just as they are defined in localconf.php (or newer LocalConfiguration.php).

$GLOBALS['TYPO3_CONF_VARS']['DB'][...]

Kind regards

-- 
Xavier Perseguers
TYPO3 CMS Team Member

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org




More information about the TYPO3-dev mailing list