Saturday, January 31, 2009

Re: if then isn't working

If you want to do alternating rows:

if ($counter % 2)

NOW if you want to do it at say every 5 rows:

if ($counter % 5 === 0)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: