Dynamically using my configfile
| From: | Thomas Akkermans | Date: | Tue, 09 Apr 2002 16:00:09 +0000 |
| Subject: | Dynamically using my configfile | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-3577@lists.php.net to get a copy of this message | ||
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