Ja, das ist eine der neueren Sachen die man sich erst mal bewusst machen muss 
und gerade bei alten Projekten häufig vergessen werden.

Danke für die Erinnerung. =)

-----Ursprüngliche Nachricht-----
Von: typo3-german-boun...@lists.typo3.org 
[mailto:typo3-german-boun...@lists.typo3.org] Im Auftrag von dialoop 
TYPO3-Support-Team
Gesendet: Dienstag, 29. Juli 2014 17:56
An: typo3-german@lists.typo3.org
Betreff: Re: [TYPO3-german] TYPO3 CMS 6.2 - Dynamische, 
LocalConfiguration.php/AdditionalConfiguration.php im, Multidomain-Setup

Warum macht ihr euch nicht die neue applicationContext Funktionalität zu Nutze 
und setzt so eure verschiedene Konfigurationswerte?

Ein Beispiel:

use \TYPO3\CMS\Core\Utility\GeneralUtility as GeneralUtility; 
$applicationContext = GeneralUtility::getApplicationContext();
if($applicationContext != NULL) {
     // Entwicklungsserver
     if ($applicationContext == "Development") {
         $GLOBALS['TYPO3_CONF_VARS']['FE']['pageNotFound_handling'] = 
'READFILE:fileadmin/templates/Private/Errors/notfound.html';
     }
     // Demoserver
     if ($applicationContext == "Testing") {
         // Do something different here...
     }
}


_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an