[SMARTY] Using assign within a function
Donald Organ <[email protected]> Thu, 07 Dec 2006 12:07:58 -0500
| Newsgroups | gmane.comp.php.smarty.general |
|---|---|
| Message-ID | <[email protected]> |
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}
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php