开发者

What is wrong with this Smarty php templating code?

What is wrong with this Smarty php templating code? If I include either of these two loops individually in th开发者_开发知识库e file, they work. But if I have them both in the file like below only the first loop gets completed.

  {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}

So for example

   {section name=j loop=$posts2}
    {include file="posts_bitposts.tpl"}
    {/section}

works fine on it's own.

Why is this happening and what is the way around it?


Solved it, was an error in my smarty code later on

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜