Re: [SMARTY-DEV] defining arrays in config files

From: Date: Sun, 22 Feb 2004 14:51:44 +0000
Subject: Re: [SMARTY-DEV] defining arrays in config files
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-2130@lists.php.net to get a copy of this message
On Sun, Feb 22, 2004 at 10:47:47AM +0100, Tarik ANSARI wrote: > Hello, > > I would like to ask something I ever asked on php.smary.general, but without > getting any accurate answer, I think it should better be asked here : > > 1) Is it possible to define arrays in config files ? How to do it ? It is possible but very limited: you can set $smarty->config_overwrite to false. Two or more config-variables with the same name in a config-file are grouped together to an array, then. > 2) How to concatenate a string with a variable like $smarty.const.CONST in a > config file ? You can't right now. All contents of config-files are static. > I ask all this questions because I would not like to use the header of my > tpl to define what should be done in the config file... > Thank you

« previous php.smarty.dev (#2130) next »