if in section

From: Date: Mon, 19 Feb 2001 20:17:51 +0000
Subject: if in section
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-143@lists.php.net to get a copy of this message
Hello All! I'm trying to migrate to Smarty so I need to clarify some things. Is it possible to reference section looped variables in {if}? For example (ideal situation) {if is_array($c_name)} Table header {section name=service loop=$c_name} {if ($service.b_active==1)} Active format applied {$service/b_active} {$service/c_name} {else} Inactive format applied {$service/b_active} {$service/c_name} {/if} {/section} {else} Empty table {/if} -- With best regards, Alexei

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