Used to alternate a set of values. Typically used to alternate between two or more colours in a table.

{foreach from=$Model item='number'}
    <li style='background-color:{cycle values='#eeeeee,#d0d0d0'}'>{$number}</li>
{/foreach}

Last edited Feb 16, 2010 at 9:08 AM by JacoPretorius, version 1

Comments

No comments yet.