I have this:

<?php echo $html->input('Bum/bang', array('size' => '60'));?>
<?php echo $html->selectTag('Az/Az', $azs, $selectedAz,
array('multiple' => 'multiple', 'class' => 'selectMultiple'), array(),
true);?>

Then, the controller
$this->Bum->save($this->data)
method save the Bum's datas and the HABTM Az datas also.

But if I change the select type from multiple to simple:

<?php echo $html->input('Bum/bang', array('size' => '60'));?>
<?php echo $html->selectTag('Az/Az', $azs, $selectedAz, array(),
array(), true);?>

Than it saves only Bum, an do not save the HABTM Az.

Why? How to solve it?


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