smarty needs a config_load error message
| From: | Andrew S. Nagy | Date: | Fri, 14 Feb 2003 19:57:22 +0000 |
| Subject: | smarty needs a config_load error message | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7771@lists.php.net to get a copy of this message | ||
Monte, I didn't get any confirmation on my proposal, so I will ask it again:
It would be nice to have an error message for a load_config that has an
invalid file or path name.
Eventhough, in the debug console it shows what config files have been loaded
and their variables, to keep it consistent with PHP, I feel that there
should be an error raised.
Any objections?
Andrew Nagy
> -----Original Message-----
> From: Andrew S. Nagy [mailto:asnagy@lsb.syr.edu]
> Sent: Wednesday, February 12, 2003 11:54 AM
> To: Smarty General
> Subject: RE: [SMARTY] config_load - can't get it to work
>
>
> 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>
> >
> >
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>