Using assign within a function

From: Date: Thu, 07 Dec 2006 17:07:58 +0000
Subject: Using assign within a function
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13631@lists.php.net to get a copy of this message
is it possible to have something like this, inside a template? {foreach from=$Items item=Item} {php}
       $thumb = $product->getImageThumb();
       $smarty->assign( 'ProdThumb', $thumb );
{/php} {$ProdThumb} {/foreach}

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