0
这个Smarty PHP模板代码有什么问题?如果我在文件中单独包含这两个循环中的任意一个,它们就可以工作。但是如果我把它们都放在下面的文件中,只有第一个循环完成。这个Smarty php模板代码有什么问题?
{include file="vote_js.tpl"}
{section name=i loop=$posts}
{include file="posts_bitother.tpl"}
{/section}
{section name=j loop=$posts2}
{include file="posts_bitposts.tpl"}
{/section}
因此,例如
{section name=j loop=$posts2}
{include file="posts_bitposts.tpl"}
{/section}
它自己的正常工作。
为什么会发生这种情况,它的方式是什么?