If you're trying to prevent duplicate form submissions, you can use the
Controller::postConditions method, as follows:

(in your controller):
if ($this->Model->hasAny($this->postConditions($this->data))) {
    // Error, duplicate submission
} else {
   $this->Model->save($this->data);
}

If your model's table has a 'created' field, you can also use that when
searching for duplicates, to restrict the search to, say, the last 5
minutes.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to