Re: [SMARTY] Using assign within a function
[email protected] (Donald Organ) Thu, 07 Dec 2006 12:30:37 -0500
| Newsgroups | php.smarty.general |
|---|---|
| Message-ID | <[email protected]> |
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}
>