Date: 03/30/00
- Next message: Kristian Köhntopp: "Re: [PHPLIB-DEV] cvs commit"
- Previous message: Kirill Maximov: "Re: [PHPLIB-DEV] cvs commit"
- In reply to: Kirill Maximov: "Re: [PHPLIB-DEV] cvs commit"
- Next in thread: Kristian Köhntopp: "Re: [PHPLIB-DEV] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Kirill!
On Thu, 30 Mar 2000, Kirill Maximov wrote:
> Kristian Kchntopp wrote:
>
> > kir wrote:
> > > - More story about templates. Now Template class from template.inc
> > > supports conditional blocks:
> > > <!-- BEGIN var IF {expression} --> {another_var} html code
> > > <!-- END var -->
> >
> > Argh! Please no! Please remove this!
> >
> > NO CODE IN TEMPLATES! NO CONDITIONS IN TEMPLATES! NO LOGIC IN TEMPLATES!
> >
> > If you want to have conditional replacement of {PLACEHOLDER},
> > set_var("PLACEHOLDER", ""); Anything programmatic does not
> > belong into a template, but into your code.
> >
>
> Well, I have the situation when i want to output something about 10 fields
> (address, phone, email, fax, etc)
> in some table. But I don't want to output header for field when the field is
> empty:
[snip]
> I'm quite sure that the thing i did it quite useful for such situations.
> Comments ?
There were a lot of comments on this subject on PHP-Templates
list (php-template <email protected>).
As you may know Andrei Zmievski started a ``native'' implementation
of templates, so the arguments were on the size.
I am not convinced how it would be better :-).
(of course I have an opinion, though)
-- teodor
-
PHPLIB Developers Mailing List. Send messages to <phplib-dev <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-dev-request <email protected>> in
the body, not the subject, of your message.
- Next message: Kristian Köhntopp: "Re: [PHPLIB-DEV] cvs commit"
- Previous message: Kirill Maximov: "Re: [PHPLIB-DEV] cvs commit"
- In reply to: Kirill Maximov: "Re: [PHPLIB-DEV] cvs commit"
- Next in thread: Kristian Köhntopp: "Re: [PHPLIB-DEV] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

