Re: [SMARTY] Use config vars inside .php file (not the .tpl file)

From: Date: Fri, 14 Mar 2003 23:12:24 +0000
Subject: Re: [SMARTY] Use config vars inside .php file (not the .tpl file)
References: 1 2 3 4  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8665@lists.php.net to get a copy of this message
Combining the globals with section is a Smarty feature, not a Config_File feature. You will have to merge them manually, as Smarty does. Monte On Fri, 2003-03-14 at 16:50, Travel Jadoo wrote: > $conf = new Config_File( etc); > $lang1 = $conf->get('file'); > $lang2 = $conf->get('file','section'); > > $lang1 gets the globals > $lang2 is supposed to get the globals + the section. However it only > gets the section. > > Am I doing something wrong? > > Alfred -- Monte Ohrt <monte@ispi.net>

« previous php.smarty.general (#8665) next »