求助,ThinkPHP使用Smarty模板引擎后,U方法生成地址链接怎么样使用变量呢?
代码截图:

访问源码截图:

{section name=List loop=$VoteList}
<a href="{U('/Index/Votes/vid/$VoteList[List].ID')}">
<span class="float-right">{$VoteList[List].InputDate|date_format:'%Y-%m-%d'}</span>{$VoteList[List].VoteName}
</a>
{/section}