Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // set iteration
- $pageTpl->setIteration('iCollections');
- // loop values
- foreach ($collections as $collection) {
- $hrefColl = $_SERVER['PHP_SELF'].'?coll=' . urlencode($collection);
- $urlDel = 'mycollections_delcoll.php?coll=' . urlencode($collection);
- $urlRen = 'mycollections_rencoll.php?coll=' . urlencode($collection);
- // assign var
- $pageTpl->assignIteration('collection', $collection);
- // refill Iteration
- $pageTpl->refillIteration('');
- }
- =====================================================
- =====================================================
- {iteration:iCollections}
- <li>
- <a href="{hrefColl}" class="coll">{collection|ucfirst|htmlentities}</a>
- <a href="{urlDel}" class="delete">delete</a>
- <a href="{urlRen}" class="rename">rename</a>
- </li>
- {/iteration:iCollections}
Add Comment
Please, Sign In to add comment