hi to all cake-lovers,
I have two quick questions. :-)
What is the correct method to use multiple check boxes in edit forms ?
Actually I'm using the following code, which works, but I'm not sure
if it's ok to force the "value" paramether:
$form->select('fieldName',$checkboxArray,null,array('value'=>split(',',
$this->data['SomeModel']
['someField']),'type'=>'select','multiple'=>'checkbox'));
where the "someField" in the DB is a simple comma separated string
(e.g 1,2,3).
Moreover, can someone confirm me that "saveAll" only works on first
level association and not on more levels ? In other words:
if I have "user" with "posts" and "profile": all models are saved
if I have "user" with "posts", and "posts" have "comments": only user
and posts are saved trough saveAll, correct ?
Thank you very much!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---