Re: My template idea...
[email protected] ("Tobias Ratschiller")
| Newsgroups | php.template |
|---|---|
| Message-ID | <00a501bf77e7$c0cbddc0$2bd0f2c2@tobiasneu> |
> 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