i would just like my comments to display only to the task id they are
associated with, but for some reason all comments are printing in all tasks.

my relations are all setup perfect and tested with debug etc. but i just
need to be able to filter the comments so they only display to the tasks
they are associated with.

I assume an id will be required in the foreach  () but I tried many
variations with only errors or no output. 

here is my code:

<?php 

foreach ($task['Comment'] as $Comment => $comment ):

echo $comment['comment']; 

endforeach; 

?>
-- 
View this message in context: 
http://www.nabble.com/foreach-data-displaying-in-all-instances-instead-of-only-related-id-tp23664815p23664815.html
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to