[TYPO3-UG Dutch] constante frontendtemplate uitlezen in backend extensie

Muriel le Pair typo3 at strangefruit.nl
Wed Jul 21 13:59:16 CEST 2010


Hoe lees ik een constante van de frontend template uit in een backend 
extensie?

Dus in de main template heb ik een constante toegevoegd bijvoorbeeld 
mijnsubdir, die waarde heb ik nodig in een extensie.

constante (frontend template)
mijnsubdir = map/

Bij een frontend extensie zit die in de array $conf. Ik vermoed dat die 
ook in een $GLOBALS array zit, alleen welke?

class tx_mijnextensie_pi1 extends tslib_pibase {
     function main($content, $conf)    {

         $this->conf = $conf;
         $this->conf['mijnsubdir']; <--- dus die wil ik in een backend 
extensie
    }
}

-- 
met vriendelijke groet,

Muriel le Pair



More information about the TYPO3-UG-Dutch mailing list