One thing I noticed is the use of an $i variable there.  Looks like
maybe you are doing a for loop??  That is probably making a lot of
$news[$i]['Reply']['etc'] variables in your code block.  Instead using
the foreach ($news as $row) would make them $row['Reply']['etc'] and
clean up your code a bit.

As for $row I like to use it since it signifies to me that I am looking
at one "row" of the array or table.  You could just as easily calls
them $replies['Reply'] as $reply.

What you did was modify your looping code to fit your previous code.
What I suggested was modifying it all to make it a little cleaner in my
opinion.  But you have it and it works.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to