[TYPO3-dev] Reading ts-setup in php

Steffen Kamper steffen at sk-typo3.de
Mon Jun 25 12:47:51 CEST 2007


Hi,

"Tonni Aagesen" <goes.to at dev.null> schrieb im Newsbeitrag 
news:mailman.1.1182765957.20878.typo3-dev at lists.netfielders.de...
> Hi,
>
> Firstly, I need to read some ts-setup from some arbitrary php code, and 
> I'm uncertain how to do this correctly. I _can_ do it like this:
>
> $tx_foobar_ts = $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_foobar.']

this is correct if you have the TSFE-Object

>
> Secondly, is the any way to determine the current sys_domain used by 
> typo3 - or is it just a matter of reading from $_SERVER superglobal.
>
>
you could do that with reading the records from table and determing, in 
which rootline of given pids you are.

vg  Steffen 






More information about the TYPO3-dev mailing list