Re: [SMARTY] Dynamically using my configfile
| From: | Monte Ohrt | Date: | Tue, 09 Apr 2002 16:18:25 +0000 |
| Subject: | Re: [SMARTY] Dynamically using my configfile | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3579@lists.php.net to get a copy of this message | ||
Or, a workaround with a custom function:
{conf_var name=$message}
Where conf_var would take the value of name as name of the configuration file variable name, and get this from the loaded config vars.
Thomas Akkermans wrote:
Hi, I want to get some text from my config-file dynamically This is what I'm trying, but it won't work: [php] .. $text =3D "name"; $smarty->assign("message", $name); .. [/php] [configfile] name =3D "teststring" name2 =3D "teststring2" [/configfile] [template] .. {#$message#} .. [/template] Does someone now how to solve this problem? -- Thomas-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.