What is wrong with this Smarty php templating code?

Petruxa

New Member
What is wrong with this Smarty php templating code? If I include either of these two loops individually in the file, they work. But if I have them both in the file like below only the first loop gets completed.\[code\] {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}\[/code\]So for example\[code\] {section name=j loop=$posts2} {include file="posts_bitposts.tpl"} {/section}\[/code\]works fine on it's own.Why is this happening and what is the way around it?
 
Back
Top