For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > May 2005 > Re: [SMARTY] assign?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [SMARTY] assign?
Cal Henderson

2005-05-10, 4:00 pm

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com