Re: [PHP Template] Revised proposal
| From: | Dan Libby | Date: | Fri, 18 Feb 2000 21:12:40 +0000 |
| Subject: | Re: [PHP Template] Revised proposal | ||
| References: | 1 2 3 | Groups: | php.template |
| Request: | Send a blank email to php-template+get-170@lists.php.net to get a copy of this message | ||
This would actually be quite useful for things like cobranding and i18n.
-dan
Andrei Zmievski wrote:
> On Thu, 17 Feb 2000, Paras Dagli wrote:
> > Definately templates are standalone from the PHP scripts that process them,
> > but it would be nice to make them into modules pairs. Here is an example:
> >
> > <modulePair: GetUpdates>
> > php: getupdates.php
> > tmpl: getupdates.tmpl
> > </modulePair>
> >
> > This way the same php, and tmpl does not need to be coded for everypage.
> > also for a developer i can change the layout of the GetUpdates module in one
> > template file and have it show up on all the other templates that call on
> > this module.
> >
> > This could be implemented by having a header file that has all the module
> > pairs defines, similar to a header file in c. You could define module pairs
> > in that header file, and a developer would just have to include that header
> > file.
>
> I had an idea similar to this some time ago. It's fairly intriguing, but
> at least from personal experience there aren't that many standalone
> php/template modules that can be just plugged in. Or I might be wrong.
>
> -Andrei
>
> Politics is for the moment, an equation is for eternity.
>
> -- Albert Einstein