I do the same thing with my downloads. 
http://www.milesj.me/resources/script/commentia

On the "download" action. I find the file in the database, I increment
its download count if it exists and then I use the Media view to force
a download. Your on the right track.

As for the author part, if the downloads have a user_id, you can just
do a SUM() on all downloads that belong to a user.
--~--~---------~--~----~------------~-------~--~----~
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