This worked well but I wonder if there is an easier way to use the helper in just the tr tag itself. Ruby, for instance, uses a little 'cycle' scriptlet within the tag. Ex: %=cycle("white", "gray") I am just curious if it is possible without making the table info into an array. I found it pretty interesting that the commas in the TR array act as cells. Either way the solution below works fine.
foreach ($data as $post): { $tr = Array ( $post['Post']['id'], $html->link($post['Post']['title'], "/posts/view/".$post['Post']['id']), $html->link('Delete',"/Posts/delete/{$output['Post']['id']}")." ".$html->link('Edit',"/Posts/edit/{$output['Post']['id']}"), $time->timeAgoInWords($post['Post']['created']) ); echo $html->tableCells($tr,Array('style'=>'background:#E2E2E2'),Array('style'=>'background:transparent')); } endforeach; --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~----------~----~----~----~------~----~------~--~---