Perhaps do something like this

if ($this->RequestHandler->isPost()) {
        $cleanData = array();
        foreach ($this->data as $field => $data) {
                // Rebuild the cleanData array based on your structure for the
database
        }

        $this->data = NULL;
        $this->data['Model'] = $cleanData;

        if ($this->Model->validates()) {
                // success
        }
}
--~--~---------~--~----~------------~-------~--~----~
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