Conditional include

From: Date: Thu, 19 Jul 2001 12:21:17 +0000
Subject: Conditional include
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1200@lists.php.net to get a copy of this message
Hi there, I often include files conditionally like this: {if $T_WARNINGS} {include file="formwarnings.html} {/if} but that's a bit un-handy. Maybe there is a a general need to implement a shorter syntax to conditionally include a file, e.g.: {include file="formwarnings.html" if=$T_WARNINGS} even cooler but would be (but harder to implement, I guess): {if $T_WARNINGS include file="formwarnings.html /if} What do you think? Andi

« previous php.smarty.general (#1200) next »