Re: Config object and variable scopes
| From: | Andrei Zmievski | Date: | Tue, 09 Oct 2001 18:20:37 +0000 |
| Subject: | Re: Config object and variable scopes | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1652@lists.php.net to get a copy of this message | ||
On Tue, 09 Oct 2001, Hans-Peter Oeri wrote:
> 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.
When I'm writing template files, it is incredibly helpful to have this
distinction -- I don't have to try and figure out that articleCharAbst
is coming from config file versus from the application.
> 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.
Why?
> Other suggestion: If the imposed distinction is sacred... what about an
> option to include to define the scope?
Sorry, could not parse this last sentence.
-Andrei
* If it's never finished, you can't prove it doesn't work. *