hello
i have a form like this:
echo $form->create("Order");
echo $form->input("code")
for($i=0,$i<10,$i++) {
echo $form->input("Item.$i.code");
echo $form->input("Item.$i.quantity");
}
echo $form->end();
i'm saving this form using saveAll with "validate" option set to
"first"
problems:
A - user can insert just 2 or 3 rows, it's not necesasry to fill all
the 10 "Item" rows. saveAll tries to save even empty insertions. Blank
rows = validation errors. is there any way to avoid this?
B - is it pobbile to create a behavior that forces "validate" =>
"first" to every saveAll call?
any help will be greatly appreciated
--
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=.