Re: [SMARTY] assign?
| From: | Cal Henderson | Date: | Tue, 10 May 2005 16:40:57 +0000 |
| Subject: | Re: [SMARTY] assign? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-12603@lists.php.net to get a copy of this message | ||
dc wrote:
: {assign var='iconId' value=
m_$menuNum_i_$index}
you could use capture to make it easier to read:
{capture assign='iconId'}m_{$menuNum}_i_{$index}{/capture}
or use backticks around each variable:
{assign var='iconId' value='m_$menuNum_i_$index'}
though there are probably other ways to accomplish it.
--cal