Re: [SMARTY] Method Request
| From: | Monte Ohrt | Date: | Thu, 20 Feb 2003 18:53:56 +0000 |
| Subject: | Re: [SMARTY] Method Request | ||
| References: | 1 2 3 | Groups: | php.smarty.dev php.smarty.general |
| Request: | Send a blank email to php-smarty-dev+get-780@lists.php.net to get a copy of this message | ||
config_load() is meant to mimic the functionality of the {config_load}
template function, which is for loading config variables into the
template engine.
So you want a class method for getting config file vars directly from
config files, or getting config file vars already assigned to the
templates?
Monte
On Thu, 2003-02-20 at 12:39, Tom Sommer wrote:
> "Paul Lockaby" <lockaby@vt.edu> wrote in xÀÍU
wï*Ë×7
> \èFnews:3E551B23.7030802@vt.edu...
>
> > Yes, I agree with that. If we load a configuration file using
> > $smarty->config_load, there should be some way to access the config
> > variables from inside the php script, aside from using
> > $smarty->_config[0]["vars"] and instead of having to create *another*
> > instance of the config_class to load the file again. In addition(!), can
> > we have some way to access all general variables already assigned
> > (through methods like $smarty->assign), aside from using
> $smarty->_tpl_vars?
>
> why not just have a $smarty->fetch_var('varname')
>
> That would fetch the var from the list of all vars, even config etc. it is
> useful, I need it :)
>
> ** Attaching php.smarty.dev to the list
> --
> Tom Sommer
> www.tsn.dk - www.dreamcoder.dk
--
Monte Ohrt <monte@ispi.net>