Reply to Re: 2 questions about smarty

Your name:

Reply:


Posted by Mitul on 04/23/07 13:22

On Apr 23, 2:28 pm, Man-wai Chang <toylet.toy...@gmail.com> wrote:
> 1. How could concatenate two values into a string in the template?
>
> {section name=j start=0 loop=10 step=1}
> {section name=k start=0 loop=10 step=1}
> {assign var=xx value=concat($smarty.section.j,$smarty.section.k)}
> {xx}
> {/seection}
> {/section}
>

You can concatenate by following way
{assign var=xx value=$smarty.section.j|cat:$smarty.section.k}


> 2. How could I address/use associative array in the template? I could do
> it with numbers, but it will be more self-documentating if I could use
> assoc. array....

Read smarty manual for this .... You will get better idea from there
itself. :)

> iTech Consulting Services Limited
> Expert of ePOS solutions
> Website:http://www.itech.com.hk(IE only)
> Tel: (852)2325 3883 Fax: (852)2325 8288

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация