[TYPO3-dev] Instantiating a cObject
Wolfgang Klinger
wolfgang at stufenlos.net
Fri Jun 23 10:30:51 CEST 2006
*hiya!*
>>Stating the question again, is it ok to go at the TypoScript configuration
>>via $GLOBALS['TSFE']->tmpl->setup['plugin.']['my_cObject'] like that, or is
>>there a better way to accomplish this?
A slightly "cleaner" approach is to use:
------
$ts_parser = t3lib_div::makeInstance('t3lib_TSparser');
list($name, $element_conf) = ts_parser->getVal('plugin.tx_myplugin_pi1',
$GLOBALS['TSFE']->tmpl->setup);
------
bye
Wolfgang
More information about the TYPO3-dev
mailing list