Re: Conditional include

From: Date: Thu, 19 Jul 2001 16:04:01 +0000
Subject: Re: Conditional include
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1214@lists.php.net to get a copy of this message
Hi Luc, Andrei, > I do agree, and I hope that if a attribute option is added, the if-if option > will be kept. Oh, I think thats a misunderstanding. To make that clear I DO NOT WANT the removal of {if}. Just the addition of an attribute to {include} that if present and true or not present includes the file. If present and false does not includes the file. > {if $condition} > ..... > {/if} > is far more obvious >> I have to disagree. In the former case, there is a >> clear syntax that you can just read through, >> "if something, then include file such and such". >> The latter case is more confusing, "include file >> such and such.. and show something"? well from the sight of a programmer, I 100% agree. Maybe also of the sight of some designers that have basic programming knowledge. But many designers prefer not to code logic (at least thats my experience). However, It was just an idea to have this attribute allowing conditional includes. It would be great to have it in a future release, but it won't be too bad if not. Regards, Andi

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