Re: Config object and variable scopes
| From: | Hans-Peter Oeri | Date: | Tue, 09 Oct 2001 18:12:34 +0000 |
| Subject: | Re: Config object and variable scopes | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1651@lists.php.net to get a copy of this message | ||
Hi!
On Tue, 9 Oct 2001, Andrei Zmievski wrote:
> What stops you from assigning to _conf_obj if you want to?
It's declared as internal variable. It's mainly a point of documentation
as public interface.
> it's optional. There is a reason for separation of config and
> application variables -- similar to the reason is for separation of form
> and content.
I don't really see that point. Of course, it is wise to distinguish
between all sorts of variables - eg. what variables are session variables.
But it's upto ME as a programmer/designer to do the distinction (eg by a
prefix). If - for some reason - I want to break my own rules, I can do so.
To impose such a distinction - with different possibilities to use the
variable (eg no arrays in config vars upto now) - and then have template
"assigned" vars use the scope of application "assigned" vars is IMHO not
really correct. (Of course, this is my very personal opinion!)
Other suggestion: If the imposed distinction is sacred... what about an
option to include to define the scope?
Don't conform!
IkKampfCaspar75