I have been banging my head against this issue all evening. Hopefully
someone might notice a typo or something.
I have simplified my form down to nothing in hopes of finding the
issue. I also decided to write the form object rather than using the
form helper to see if it help me find my bug. What it seems to boil
down to is the name property. If use the name the form helper gave my
object name="data[Did][id][]" when I submit the form all I ever get is
a complete blank page. If I change the object name to use any other
word but data the form submits fine. I am completely baffled.
I have tested this in Firefox 3.0.4 and use Firebug.
I also tried Safari 3.2 and Flock 1.0.8
I am developing with Cake 1.2.0.7692_RC3
Any suggestions would be greatly appreciated.
I have dids_controller.php:
<?php
class DidsController extends AppController {
var $name = 'Dids';
var $helpers = array('Html', 'Form');
function assign() {
debug($this->params);
}
}
?>
My view is assign.ctp:
<?php echo $form->create('Did', array('action' => 'assign')); ?>
<select name="test[Did][id][]" multiple="multiple">
<option value="1111">aaaa</option>
<option value="2222">bbbb</option>
<option value="3333">cccc</option>
</select>
<?php echo $form->end('Save Did'); ?>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---