[TYPO3-german] TYPO3 CMS 6.2 - Dynamische, LocalConfiguration.php/AdditionalConfiguration.php im, Multidomain-Setup
dialoop TYPO3-Support-Team
typo3 at dialoop.de
Thu Jul 31 16:16:46 CEST 2014
Gern geschehen, dabei jedoch nicht vergessen den ApplicationContext auch
wirklich zu setzen, ich persönlich verwende die .htaccess Methode dafür.
Gruß,
Carlos Miguelez
Am 31.07.2014 um 16:08 schrieb David Gurk:
> 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-bounces at lists.typo3.org [mailto:typo3-german-bounces at lists.typo3.org] Im Auftrag von dialoop TYPO3-Support-Team
> Gesendet: Dienstag, 29. Juli 2014 17:56
> An: typo3-german at 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...
> }
> }
>
>
More information about the TYPO3-german
mailing list