[Typo3-dev] typoScript constants in extensions
    Franz Holzinger 
    franz at fholzinger.com
       
    Mon Jun 13 12:54:54 CEST 2005
    
    
  
Hello Thomas,
> I'm just writing an extension and want to use some of the in the templates 
> defined constants. When I try to debug($GLOBALS) they are not chown. Is there 
> a posibility to use them?
> 
as far as I know you cannot access the constants, but only the 
variables, e.g.:
require_once(PATH_tslib."class.tslib_pibase.php");
function main_products($content,$conf)	{
global $TSFE;
$TSFE->set_no_cache();
// *************************************
// *** getting configuration values:
// *************************************
// getting configuration values:
$this->conf=$conf;
But settings can be accessed e.g. through $GLOBALS['TYPO3_CONF_VARS'] .
Franz
    
    
More information about the TYPO3-dev
mailing list