Call me dense, but how would I do that? The main loop goes through the
different rows and assigns something to them. Do something like this in a
view?
<?php foreach ($provider as $i => $prov): ?>
<tr class="<?php echo ($i % 2 == 0) ? 'altrow' : '' ?>">
<td>
<?php echo $prov['Provider']['last_name']; ?>
</td>
On Mon, Oct 24, 2011 at 9:45 AM, Jeremy Burns | Class Outfit <
[email protected]> wrote:
> Shouldn't the altrow class be applied to alternating rows rather than the
> table?
>
> Jeremy Burns
> Class Outfit
>
> http://www.classoutfit.com
>
> On 24 Oct 2011, at 14:40, Yves S. Garret wrote:
>
> It does... sort of. Now it's all just gray.
>
> Here is my view:
> http://bin.cakephp.org/view/1436687402
>
>
> On Sun, Oct 23, 2011 at 9:28 AM, Arno.E <[email protected]>wrote:
>
>> Actually, it is working. You're setting the background color to *white*.
>> If you want to change the background color to something like #f5f5f5 in line
>> 170, it should show up.
>>
>>
>> --
>> Our newest site for the community: CakePHP Video Tutorials
>> http://tv.cakephp.org
>> Check out the new CakePHP Questions site http://ask.cakephp.org and help
>> others with their CakePHP related questions.
>>
>>
>> To unsubscribe from this group, send email to
>> [email protected] For more options, visit this group
>> at http://groups.google.com/group/cake-php
>>
>
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php