Hi.

I have partialLoop for rendering some table rows and I want to cycle two CSS
classes in each loop. I tried but it looks like cycle is reinitialized and
in each loop I get same value returned from cycle helper.

Later I came up with this code in loop partial phtml:

if ($this->partialCounter%2) {
        $class = 'class1';
} else {
        $class = 'class2';
}

Is there a way around this with cycle helper?

Regards,
Saša Stamenković
-- 
View this message in context: 
http://old.nabble.com/Cycle-view-helper-inside-partialLoop-tp26193715p26193715.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to