Re: [SMARTY] Method Request
| From: | Tom Sommer | Date: | Thu, 20 Feb 2003 19:40:09 +0000 |
| Subject: | Re: [SMARTY] Method Request | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8038@lists.php.net to get a copy of this message | ||
On 20 Feb 2003 13:28:43 -0600, Monte Ohrt wrote:
> In some cases (like above), loading the vars into the templates is an
> unnecessary step, unless you want to access vars that will get assigned
> anyways. Typically you don't want things like database config info
> accessible from within the templates!
Perhaps, this is just an idea. We could add a second argument to
config_load()
like $smart->config_load('main.conf',CONF_LOADALL|CONF_LOADVISIBLE);
I don't know how it works at the moment, but why not just keep hidden
config sections out of the templates, and only make them accessable by the
$smarty->fetch_var() function/method?
> Yes, well I was hoping someone that uses compiler functions might answer
> that. I'll have to dig into the code to see what your problem is. There
> just isn't enough hours in the day for free support :( Andrei also wrote
> this portion of the code, and he has been inactive in development for
> many months since he moved to his new job.
Alright, but I really need help with this :)
--
Tom Sommer
(New news client, bare with me)