Re: My template idea...
| From: | Tobias Ratschiller | Date: | Tue, 15 Feb 2000 19:06:19 +0000 |
| Subject: | Re: My template idea... | ||
| References: | 1 2 3 4 5 | Groups: | php.template |
| Request: | Send a blank email to php-template+get-37@lists.php.net to get a copy of this message | ||
> What do you think about the template support for config files? Is it
> necessar or not? Would it be better for the developer to load config
> file manually and do something like tpl_assign_config() on the template?
> A disadvantage I see with it is that it will be impossible for included
> templates to override parent's config values.
Yes, I wondered about that, too. It seems to be a logically separate topic,
so I'm not sure it should be covered by the template API. I'd love to have a
standard config-file API in PHP, though.
Is it really necessary to have per-template configuration variables? I've
never needed that so far (I'm not saying that it might not be an advantage
in certain applications - just how often is it really used?).
-Tobias