[TYPO3-dev] Instantiating a cObject

Brian Slezak brian.slezak at cor.org
Sat Jun 24 05:09:23 CEST 2006


Very good suggestion. ts_parser is an appropriate way to do this.

Thanks Wolfgang!

Brian

"Wolfgang Klinger" <wolfgang at stufenlos.net> wrote in message 
news:mailman.2107.1151051414.30412.typo3-dev at lists.netfielders.de...
> *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