Re: [SMARTY] Using assign within a function
Panu <[email protected]> Thu, 07 Dec 2006 18:28:38 +0100
| Newsgroups | gmane.comp.php.smarty.general |
|---|---|
| Message-ID | <[email protected]> |
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}
I don't see the benefit even if it could be done. You end up getting the
same thumb over and over again on every loop.
Or am I (or You) missing something here?
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php