Re: [PHP Template] Revised proposal
[email protected] (Andrei Zmievski) Fri, 18 Feb 2000 09:23:12 -0600
| Newsgroups | php.template |
|---|---|
| Message-ID | <[email protected]> |
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