Re: [SMARTY] isset

From: Date: Thu, 01 Aug 2002 18:54:21 +0000
Subject: Re: [SMARTY] isset
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5539@lists.php.net to get a copy of this message
>> Hi I read Monte's mail about not use isset in templates, to improve separation between logic and presentation ... in a template, the correct is {if $flag} and not {if isset($flag) && $flag} ... you'll implement this, or how can I test from a template that a part is displayed only if a var is set, and not otherwise? thanks! -- Andres Ferrando <anferr@mecon.gov.ar> << How about running your template once with the variable set $template->assign('flag',true); and once without assigning it at all? __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com

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