ecos模板foreach取序号
<{foreach from=$item_list name=yt item=gitem}> <{$this->_env_vars['foreach']['yt']['iteration']}> <{/foreach}>
ecos模板foreach取第一个
<{foreach from=$item_list name=yt item=gitem}> <{$this->_env_vars['foreach']['yt']['first']}> <{/foreach}>
ecos模板foreach取最后一个
<{foreach from=$item_list name=yt item=gitem}> <{$this->_env_vars['foreach']['yt']['last']}> <{/foreach}>
注意这里的foreach name一定要添加!!!