Ah cool, thanks! But then if I use javascript to generate the index
number on the fly how will the controller know which / how many
ExpenseDetails to look for? Should I use a hidden input to record the
max index?

On Jun 4, 6:35 am, Grant Cox <[EMAIL PROTECTED]> wrote:
> For the helpers you can use model and field names that don't actually
> exist.  So you can have
>
> $form->input('ExpenseDetail1.title');
> $form->input('ExpenseDetail2.title');
> $form->input('ExpenseDetail3.title');
>
> and these will come into your controller as $this-
>
> >data['ExpenseDetail1']['title']  etc.
>


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