Re: [SMARTY] Using assign within a function
| From: | Donald Organ | Date: | Thu, 07 Dec 2006 17:30:37 +0000 |
| Subject: | Re: [SMARTY] Using assign within a function | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-13632@lists.php.net to get a copy of this message | ||
Sorry subject should be "Using assign within a template".
Donald Organ wrote:
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}