Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test.php
- <?php
- require_once('tiki-setup.php');
- $myArray = array(1,2,3,4,5);
- $smarty->assign('myArray', $myArray);
- $smarty->display('test.tpl');
- templates/test.tpl
- {foreach from=$myArray item=i name=foo}
- {cycle name=outsideif values="a,b"}
- {if !$smarty.foreach.foo.last}{cycle name=insideif values="c,d"}{/if}
- {/foreach}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement