Re: [PHPLIB-DEV] cvs commit From: Kristian Köhntopp (kk <email protected>)
Date: 03/30/00

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.

Kristian

-- 
Kristian Köhntopp, NetUSE Kommunikationstechnologie GmbH
Siemenswall, D-24107 Kiel, Germany, +49 431 386 436 00
Using PHP3? See our web development library at
http://phplib.netuse.de/ (We have moved! Update your bookmarks!)
-
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.