Hi Potential "save my day"  helpers,
I came across the following problem:
I'm trying to "SaveAll" form, containing associated data as followed:

<?php echo $this->Form->create('Member');
echo $this->Form->input($field_prefix.'family_id',array('type'=>'hidden'));
echo $this->Form->input($field_prefix.'contact_id',array('type'=>'hidden'));
echo 
$this->Form->input($field_prefix.'term_id',array('type'=>'hidden','value'=>$memberrole));

//associated model

echo $this->Form->input('Contact.0.last',array('label'=>__('Family',true)));

echo $this->Form->input( 'Contact.0.address',array('label'=>__('House 
Number and Stree',true),'rows' => '2'));
echo $this->Form->input( 'Contact.0.city',array('type'=>'hidden'));
echo $this->Form->input( 'Contact.0.id',array('type'=>'hidden'));

?>
</fieldset>
<?php echo $this->Form->end(__('Submit', true));?>

 echo 
$this->Form->input('Contact.0.last',array('label'=>__('Family',true)));
echo $this->Form->input($field_prefix.'address',array('label'=>__('House 
Number and Stree',true),'rows' => '2'));
echo $this->Form->input($field_prefix.'city',array('type'=>'hidden'));
echo $this->Form->input($field_prefix.'id',array('type'=>'hidden'));
etc...

-- 
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].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.


Reply via email to