[TYPO3-german] Zugriff auf Konstante aus ext_conf:template.txt
Rainer Schleevoigt
rainer at webmasterei-hamburg.de
Tue Nov 17 12:35:27 CET 2009
Rainer Schleevoigt schrieb:
> Hi,
>
> in einer TCA-Userfunc möchte ich auf Konstanten zugreifen
> (Google-apikey). Mittels $conf['apikey'] geht es schon mal nicht.
> In welchem Namensraum steht aus Extensionsicht die Konstante?
>
>
Es gibt auch ein therapeutischen Posten. Es ist klar, so komme ich ran:
$this->extconf =
unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['ras_gmaptrackedit']);
$this->apikey = $this->extcinf['apikey'];
Gruß Rainer
> Gruß Rainer
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
>
More information about the TYPO3-german
mailing list