initialize() protected method

Load all configuration files
protected initialize ( )
Ejemplo n.º 1
0
 protected function initialize()
 {
     parent::initialize();
     $GLOBALS['TL_CONFIG']['dbDriver'] = 'MySQLi';
     $GLOBALS['TL_CONFIG']['dbUser'] = $GLOBALS['DB_USER'];
     $GLOBALS['TL_CONFIG']['dbPass'] = $GLOBALS['DB_PASSWD'];
     $GLOBALS['TL_CONFIG']['dbHost'] = $GLOBALS['DB_HOST'];
     $GLOBALS['TL_CONFIG']['dbDatabase'] = $GLOBALS['DB_DBNAME'];
     $GLOBALS['TL_CONFIG']['dbPort'] = $GLOBALS['DB_PORT'];
 }