[TYPO3-dev] I can't read the values from ext_conf_template.txt
Leen Strijk
leenstrijk at tomaatnet.nl
Mon Feb 28 21:39:26 CET 2011
I can get the values now.
My previous post was premature cause i forgot to clear the cache.
During my search i see that using ext_typoscript_constants.txt is deprecated
Preset TypoScript constants
Deprecated (use static template files instead, see extMgm API description)
Such a file will be included in the constants section of all TypoScript
templates.
So i used static/constants.txt. I can see the values in the constant
editor but still can't read them
On 28-2-2011 14:24, Leen Strijk wrote:
> Hello all,
>
> I have made my (1st) extension, and all is working fine but I can't seem
> to te be able to read the values in ext_conf_template.txt
>
> The values are showing in the backend in template setup and in the
> constants part of the object browser and all but I can see them in my
> script.
>
> I have tried with :
> $this->configuration =
> unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['my_ext']);
>
> and with debug I can't even get them to show up with:
> debug($GLOBALS['TYPO3_CONF_VARS']['EXT'])
> All the other values from other scripts are there but not my extension.
>
> kind regards
> Leen
More information about the TYPO3-dev
mailing list