Re: [PHP Template] Re: [PHP3] PHP Template Engine spec revision0.52
[email protected] (Monte Ohrt) Tue, 21 Mar 2000 13:50:31 -0600
| Newsgroups | php.template |
|---|---|
| Organization | ispi |
| Message-ID | <[email protected]> |
Hi Zeev, Zeev Suraski wrote: > > On Tue, 21 Mar 2000, Andrei Zmievski wrote: > > > On Tue, 21 Mar 2000, Zeev Suraski wrote: > > > > The template logic is not meant to replace PHP logic. See above. > > > > > > But it *CAN*. That's the problem. > > > > The whole exchange can be summed up to this: you think that template > > logic can replace PHP. I, however, say that it can't. Having > > conditionals and automatic loops is far from being a programming > > language that can replace PHP logic. Even if I tried, I couldn't replace > > any one of the PHP scripts with what logic spec talks about. No way. > > You sure did fool me, in your various examples of how much your template > code is easier than PHP code. > > Zeev > In these examples, templates were taken and rewrote in PHP. Of course that can be done, although messy. The argument here is that you can't take a complex PHP script and rewrite it in a template. Of course not, they are no where near the same thing. The template logic is used for controlling layout, much like CSS does for HTML. The business rules stay in PHP. Monte