Re: [SMARTY] Method Request
| From: | Monte Ohrt | Date: | Thu, 20 Feb 2003 20:44:20 +0000 |
| Subject: | Re: [SMARTY] Method Request | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8055@lists.php.net to get a copy of this message | ||
Well it's a matter of function. If get_template_var() gets assigned
template vars, then it is implied that get_config_var() gets assigned
config vars, not vars from config files.
Monte
On Thu, 2003-02-20 at 14:38, Tom Sommer wrote:
> On Thu, 20 Feb 2003 15:34:05 -0500, Paul Lockaby wrote:
> > I don't think it should be. I think the function should just get values
> > that have already been assigned. You can use the above function in order
> > to get variables that aren't going to be assigned to the template
> > anyway, since I think the whole point of this function is to avoid
> > loading the same variables twice. Just my two cents.
>
> I totally disagree, the whole point of this was to be able to get variables
> from the config file to use in PHP...
>
> I think we need all vars, because 1) They are safe in PHP 2) we can use SQL
> information to connect to mySQL etc.
> but I can settle with all assigned...
>
> But when it comes to if it should be a in smarty function then YES, 100%
> yes... get_config_var(string var, [WITH_HIDDEN]);
>
> How's that?
>
> --
> Tom Sommer, denmark
> www.tsn.dk - www.dreamcoder.dk
--
Monte Ohrt <monte@ispi.net>