If you are using recursion and association you simply count the related
array to get the records.  count($data['Comment']).  I would advise
against making a requestaction call to retrieve it or putting hack code
in the view.

Another more elegant solution is to utilize the afterFind.  Just
remember that any "virtual" fields you add only work on find calls.  So
you would need to use findById() instead of read(null, $id).  or even
the setid, read.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to