cakephp101, I think you should start checking out the section of the book on validation - http://book.cakephp.org/view/125/Data-Validation Specifically, I think you want to read this section - http://book.cakephp.org/view/740/notEmpty
-teh On May 22, 12:15 am, cakephp101 <[email protected]> wrote: > yes, i mean fields in a table. i'm doing a timesheet for a payroll. > the start sched, end sched, time in and time out of the employee are > the input. that means i have 4 fields. i have 5 rows of those 4 > fields. the 5 rows is equal to 5 days because 1 row is equal to 1 day. > when i only put input in 4 of the rows and 1 form is empty, it will > still save the empty fields with a null value in my database. i'm > saving it through saveAll. how can i abort the save for the fields > that are empty? i think it should be done in beforeSave but i don't > know how. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
