Hey,

I have 2 Tables:

pictures
ratings

every rating belongs to a picture and every picture has many ratings.
(just a normal rating DB)

i want to make a list of every picture with it's average rating in the
picture view. Therefor i had made a avgRating function (gets the id of
the picture and returns the avg. Rating)  in the model of the rating
and used "uses (picture, rating)" in the picture controller. But i'm
not able get the data into the controller and the view.

can anyone pls help me?

thank you very much!
--~--~---------~--~----~------------~-------~--~----~
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