php - How to use _extra dynamically in smarty {html_select_time} -


i have problem here. can add value hour_extra='id="hour_id"' in {html_select_time}. want add dynamically. how this? please help

my code below.

{section name=foo start=2 loop=18 step=1}     {assign var="itt" value=$smarty.section.foo.index}        {html_select_time prefix=pre$itt use_24_hours=false display_seconds=false minute_interval=5 time="00:00" hour_extra='id="$itt"' } {section} 

here not working. thanks

this need:

{section name=foo start=2 loop=18 step=1}     {assign var="itt" value=$smarty.section.foo.index}         {html_select_time prefix="pre{$itt}" use_24_hours=false display_seconds=false minute_interval=5 time="00:00" hour_extra="id='{$itt}'" } {/section} 

(tested in smarty 3.1.18)


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -