You'd have to do a find('count') with a condition on
$this->Auth->user('id') (or however they're associated) at the top of
the action.On Wed, Sep 2, 2009 at 6:08 PM, Dave Maharaj :: WidePixels.com<[email protected]> wrote: > 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 [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 -~----------~----~----~----~------~----~------~--~---
