[TYPO3-english] Accessing extension constant from php script

Jackie Stallard jstallard at internode.on.net
Mon Aug 22 05:34:37 CEST 2011


On 22/08/2011 12:41 PM, Jackie Stallard wrote:
I've found the problem. This works:
$confArray=unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$this->extKey]);

This doesn't!
$confArray=unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['$this->extKey']);
I had some extra quotes in the statement!

Sorry, a no-brainer but couldn't see it for looking!


More information about the TYPO3-english mailing list