In php, the smarty section loop problem {yun:} section name = "menu" loop = $ navigation {/yun}
{Yun:} assign var = "one_menu_id" value = $ navigation [menu]. id {/yun}
{Yun:} section name = "menud" loop = $ one_menu [$ one_menu_id] {/yun}
{Yun:} assign var = "two_menu_rows" value = $ one_menu [$ one_menu_id] {/yun}
{Yun:} assign var = "two_menu_id" value = $ one_menu [$ one_menu_id] [menud]. id {/yun}
What do red labels mean? Is there such a way in smarty ??
Reply to discussion (solution)
Find some of the Smarty manual
1. assign
Define a template variable and assign values
Format: <{assign var = "variable name" value = "value"}>
What makes you think he is smarty?
So how do you understand the structure of this code?
{Assign} is used to assign values to variables during Template running.
Http://www.smarty.net/docs/zh_CN/language.function.assign.tpl