Wednesday, September 2, 2009

Limit question

This might be something simple that has an easy solution.
 
I want to limit the number of images a User can have (create) for a specific gallery. Top 10 images can only have 10 images obviously...
I figured a simple query to count images that are uploaded in the action and if less than 10 allow to proceed else error message to delete 1 or more images first.
 
Any other suggestions that would make more sense or easier?
 
Thanks
 
Dave

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