Thursday, January 1, 2009

count no of messages

I have project and message table.

Projects
id Projecttitle
1 Imagegallery
5 blog

Messages
id title project_id
1. New image 1
2. Text is rough 5
3. blog is empty 5

Now i want no of messages in perticuler project in view file
Like
SrNo Project Title Message No
1 imageGallery 1
2 Blog 2

If use find count it gives total message but i need respective no of message
in periculer project
So i think i have to pass variable id to controller from view file.
What is solution for this?
--
View this message in context: http://www.nabble.com/count-no-of-messages-tp21248587p21248587.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 cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: