Re: [SMARTY] config_load - can't get it to work
| From: | Monte Ohrt | Date: | Wed, 12 Feb 2003 16:14:18 +0000 |
| Subject: | Re: [SMARTY] config_load - can't get it to work | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7684@lists.php.net to get a copy of this message | ||
This works for me.
default.skin
------------
foo = bar
index.tpl
---------
{config_load file="default.skin"}
{#foo#}
output
------
bar
Monte
On Wed, 2003-02-12 at 10:09, Andrew S. Nagy wrote:
> Maybe I am jumping the gun on asking for help on this one.
>
> I am loading a config_file, a pretty basic one. It holds some template info
> such as link, alink, vlink colors, etc. I have tried both methods:
> in my css.tpl file, i have tried:
> {config_load file="default.skin"} and {config_load file="default.skin"
> scope="global"}
>
> i have also tried in my php file:
> $smarty->config_load("default.skin");
>
> In the debug console all i get is:
> {#files#} Array (1)
> default.skin => 1
>
> The problem is that I can get any values from the config file no matter what
> method I use.
> I am using the correct syntax of: {#vlink#}
>
> Has any one come across this problem?
>
>
> ____________________________________________
> Andrew S. Nagy
> Lead Applications Developer
> Living SchoolBook
> Syracuse University
> (315) 443-3450
> http://lsb.syr.edu
--
Monte Ohrt <monte@ispi.net>