RE: [SMARTY] config_load - can't get it to work

From: Date: Wed, 12 Feb 2003 16:53:39 +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-7687@lists.php.net to get a copy of this message
Sorry, I guess I did jump the gun. After an hour or so of debugging, I found that I had the wrong path in my config_load function. Sorry :) As a new feature, it would be nice to have an error message with something to the effect of: can not locate ***config file*** very similiar to how it is done with the tpl files. Does this sound like a reasonable idea? > -----Original Message----- > From: Monte Ohrt [mailto:monte@ispi.net] > Sent: Wednesday, February 12, 2003 11:14 AM > To: Andrew S. Nagy > Cc: Smarty General > Subject: Re: [SMARTY] config_load - can't get it to work > > > 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> > >

« previous php.smarty.general (#7687) next »