Re: [SMARTY] getting value assign()'d

From: Date: Thu, 02 Jun 2005 05:02:07 +0000
Subject: Re: [SMARTY] getting value assign()'d
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12652@lists.php.net to get a copy of this message
Matt Warden wrote: : $smarty->assign('myArrayCount', count($smarty->get('myArrayCount'))); i assume you wanted the count of myArray? if you mean you want to fetch back an already assign'd template variable then: $smarty->assign('myArrayCount', count($smarty->get_template_vars('myArray'))); but really, it's very easy in smarty itself: {$myArray|@count} --cal

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