Cycle Helper The Cycle helper is used to alternate a set of values. Cycle Helper Basic Usage To add elements to cycle just specify them in constructor or use assign(array $data) function books as $book):?> next()?>"> escape($book['author']) ?> // Moving in backwards order and assign function $this->cycle()->assign(array("#F0F0F0","#FFFFFF")); $this->cycle()->prev(); ?> ]]> The output First Second ]]> Working with two or more cycles To use two cycles you have to specify the names of cycles. Just set second parameter in cycle method. $this->cycle(array("#F0F0F0","#FFFFFF"),'cycle2'). You can also use setName($name) function. books as $book):?> next()?>"> cycle(array(1,2,3),'number')->next()?> escape($book['author'])?> ]]>