setting up and loading a config file problematic here
| From: | Thorsten | Date: | Tue, 20 Jul 2004 18:00:37 +0000 |
| Subject: | setting up and loading a config file problematic here | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-11613@lists.php.net to get a copy of this message | ||
hi,
i've re-discovered Smarty a few days back and tried setting up a config file with variables and loading it in a .tpl file.
i read up on it in the 2.6.0 documentation (p. 13) and think i entered stuff correctly:
in the .conf:
navilinks = "<a href='#'>f00</a> - <a href='#'>bar</a>"
in the .tpl:
{config_load file="variables.conf"}
in the .php:
{$smarty.config.navilinks}
the {$smarty.config.navilinks} returns nothing in the .php file when invoking the respective page while the other code like including .tpls et al works.
any idea? more info needed?
cheers,
- Thorsten