Re: config vars are now static
| From: | Thomas Seifert | Date: | Sat, 14 Jun 2003 17:04:14 +0000 |
| Subject: | Re: config vars are now static | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1581@lists.php.net to get a copy of this message | ||
Hey everyone,
ouch that gets nasty.
That means I can't upgrade my smarty-installation any longer.
I'm using config-files for adding language-abstraction to my apps
where the lang-files are loaded dynamically as config-files.
Any way to make this new behaviour optional?
Thomas
On Sat, 14 Jun 2003 04:34:31 -0700 (PDT) jayboots@yahoo.com (Boots) wrote:
> Hi Monte.
>
> Just started testing the new config var patch. Initial observation is
> that as a consequence of going compile time, two important issues
> arise:
>
> 1. Literal names in the config_file 'file' parameter are now required:
> no more dynamically selected configurations.
>
> No longer supported: {config_load file=$config_file}
> Let alone this: {config_load file=$Object->config_file}
>
>
> 2. All templates are now required to explicitly do a config_load to
> have access to the configuration values.
>
> I think the previous framework still allowed for a static config_load
> implementation (well, I did work against 2.5 that achieved a similar
> outcome.}
>
> I like the idea, but I think that those are pretty big changes.
>
> xo boots
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com