Re: Conditional include

From: Date: Thu, 19 Jul 2001 14:28:11 +0000
Subject: Re: Conditional include
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1208@lists.php.net to get a copy of this message
Hi Monte, >> {include file="formwarnings.html" if=$T_WARNINGS} > This would be fairly simple to implement. Any thoughts? I'm not sure > about the attribute name. We could follow the {section} attribute > syntax: > {include file="formwarnings.html" show=$T_WARNINGS} Hmm "show" would be consistent with the section attribute. Some other thoughts: - show - is - istrue - exist - isset - assigned For sake of consistency I would go for "show". _andi

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