开发者

What is wrong with this Smarty php templating code?

开发者 https://www.devze.com 2023-01-15 06:30 出处:网络
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

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

精彩评论

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