[TYPO3-dev] Extensions' TS values are not visible with $conf

ktt kestutis98 at yahoo.com
Fri Aug 19 03:33:28 CEST 2011


Hello,

I tried to access TS setup values in extensions class:

class tx_myextmode_ttnews {
                       
                    function main($params, $conf) {
                                            
                        $this->conf = $conf;
                        $this->pi_setPiVarDefaults();
                        $this->pi_loadLL();

                        echo$conf['myvalue'];
                        ...

but it is not visible. print_r($conf) works, but my extensions' value is not present there.
In TS it is set 


plugin.tx_myextmode_ttnews {
    myvalue = {$plugin.tx_myextmode_ttnews.myvalue}
} 

and visible in the backend..
I have this in ext_tables.php:
            ...

            'itemsProcFunc' => 'tx_myextmode_ttnews->main',

            ...
Maybe it interferes with $conf being passed to main somehow?

Thank you in advance,
Kast A.





More information about the TYPO3-dev mailing list