Have you tried just using:

echo $this->Form->input('Zip');

http://book.cakephp.org/view/1390/Automagic-Form-Elements specifically
provides an example for creating a hasAndBelongsToMany select (just
search for the text "hasAndBelongsToMany" on that page).

On Feb 9, 2:10 pm, OldWest <ja...@jasonwydro.com> wrote:
> I wanted to know if you have much experience with saveAll() w/ HABTM on a
> multiple select field?
>
> I can get the Zips populated from the plans_zips table (with the below), but
> I cannot get the zips to save in the HABTM plans_zips table..
>
> ...
> *<?php echo $this->Form->input('"$i".Zip', array(*
> * 'type'     => 'select',*
> * 'multiple' => 'true',*
> * 'label'    => 'Select the Zips'*
> * ));*
> *?>*
> ...
>
> The $i represents the for loop I am using for the adding of multiple
> records.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to