Re: [SMARTY] Method Request
| From: | Tom Sommer | Date: | Thu, 20 Feb 2003 20:38:43 +0000 |
| Subject: | Re: [SMARTY] Method Request | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8054@lists.php.net to get a copy of this message | ||
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