You may want to check Controller::cleanUpFields():

http://api.cakephp.org/class_controller.html#43aea5e84ef8550cf3ae8a97ca18ec1
e

Call it before the save() and your $data will be normalized. Just try:

if (!empty($this->data))
{
        $this->cleanUpFields();

        debug($this->data); 
        exit;
}

-MI

---------------------------------------------------------------------------

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!

blog: http://www.MarianoIglesias.com.ar


-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de christianandradet
Enviado el: Martes, 10 de Abril de 2007 02:55 p.m.
Para: Cake PHP
Asunto: save dates

hi, i am trying to save a date with $form->input('date'), with the
select list of the y/m/d, but when save it executes successfully but
the fiel 'date' does not appear in the insert statement, i checked for
sintax and it's ok , HElp please


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to