If you are displaying a table of projects with each row containing a count of messages associated with that project then this should all be done as part of a single request within the controller. You may want to look at letting Cake keep a running count of messages within the project table. See ...
http://book.cakephp.org/view/490/counterCache-Cache-your-count You should not be making any logic/controller calls from within your views as the controller fetches and sends all data to the view before it is rendered. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
