Sorry, simacole, I'm at (and very probably beyond) the limit of my
knowledge of Cake. I'm hoping some others will chime in and show how my
generic php concepts require far too much work. I know (because I've
done it) that it's possible to accomplish multi-row editing (outside
Cake, that is) by using the good old $_POST[] array, but I'm at a loss
about the Cakey nuts and bolts of doing it in a way that takes
advantage of what the framework has to offer.

I do have the impression that one can use the checkbox helper to create
any kind of checkbox, even one that doesn't exactly fit the Cake mold.
Generating the data rows and the checkboxes is really the easy part
here.

It's the save() that's difficult.

But maybe it isn't dificult! If someone has actually created a
multi-row editing page like this, please chime in. I can find no good
examples. The idea of multi-row editing is of great interest to me as
well as to simacole.

What Mariano Iglesias wrote is suggestive, but not detailed enough. I
guess the key issue (to me) is, Will those rows all be included in the
$data[] array? And, Will they all be saved back if I alter them in that
array, then do a simple save()?

Okay... to check the above, I opened a Cake list page with debugging
set at 4, then looked at the $data[] array, and I find that yes, all
the rows displayed on the page are present there in $data[].

So, if the list were wrapped up in a form, then some of the rows were
altered in the $data[] array, and then a simple save() were
performed... would everything be saved all at once?

If so, then maybe the multi-row editing is pretty easy after all.


--~--~---------~--~----~------------~-------~--~----~
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