Date: 07/20/00
- Next message: Dave Tilley: "[phplib] Default Authentication, $nobody and confusion"
- Previous message: Kristian Koehntopp: "Re: [phplib] Conditional blocks"
- Maybe in reply to: Smith, David (Student Assistant): "[phplib] Conditional blocks"
- Next in thread: Zakaria: "Re: [phplib] Conditional blocks"
- Reply: Zakaria: "Re: [phplib] Conditional blocks"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
If you have a large amount of HTML (part of the template) which you want to
appear only on a certain condition, this could be a useful feature. For
example
<!-- IFDEF NAME -->
<b>{NAME}</b><br>
<i>{SHORTDESC}</i><br>
<a href="buy.php?id={IDNUM}">Buy</a><br>
<!-- ENDIF NAME -->
perhaps not the best example, but there do seem to be some places where I
have found it useful.
You don't *have* to include it. I thought it might be worth suggesting it as
an additional method.
Dave Smith
> -----Original Message-----
> From: kris <email protected> [mailto:kris <email protected>]
> Sent: Thursday, July 20, 2000 4:06 PM
> To: phplib <email protected>
> Subject: Re: [phplib] Conditional blocks
>
>
> In netuse.lists.phplib you write:
> >I really like your implementation of templates in PHP.
> >Incredibly useful. Unfortunately, I felt it was missing a
> >feature - conditional blocks.
>
> "Conditionals" are part of your programming language. You
> already own one, called PHP. If you want a conditional, set a
> field of an arbitrary name into desired the position in your
> template, and then set_val() it to "" or the desired value.
>
> Kristian
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Dave Tilley: "[phplib] Default Authentication, $nobody and confusion"
- Previous message: Kristian Koehntopp: "Re: [phplib] Conditional blocks"
- Maybe in reply to: Smith, David (Student Assistant): "[phplib] Conditional blocks"
- Next in thread: Zakaria: "Re: [phplib] Conditional blocks"
- Reply: Zakaria: "Re: [phplib] Conditional blocks"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

