Re: [PHP Template] Re: if statements

[email protected] (Dan Libby)
Newsgroups php.template
Message-ID <[email protected]>
Or we could just forget about using a separate template at all and embed PHP in
our html....  it's a slippery slope.

Andrei Zmievski wrote:

> On Tue, 15 Feb 2000, Travis E. Sitzlar wrote:
> >
> > Personally, I like the 'if' concept as outlined below.  But I am only one
> > voice out of XXX number...  ;-)
> >       </i>
>
> Another possibility would be to just embed php code in the template:
>
>      <i>Your search found {products_total}
>
>          <? if ({{products_total}} == 1): ?>
>          matches.
>          <? endif;
>                 if ({{products_total}} > 1): ?>
>          match.
>          </i>
>
> And then either the template is automatically evaluated depending on a
> flag or the developer can do eval() on the results of tpl_fetch().
>
> -Andrei
> * Black holes are where God divided by zero. *
danda.vcf (text/x-vcard, 304 B)
begin:vcard 
n:Libby;Dan
tel;work:650-210-2356
x-mozilla-html:TRUE
url:http://www.epinions.com
org:Epinions.com;Engineering
adr:;;;;;;
version:2.1
email;internet:[email protected]
title:Morlock
note:We're hiring at epinions.com.  Engineers, site designers, QA -- we need you.
fn:Dan Libby
end:vcard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.