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.


On Jun 4, 4:35 am, GaZ <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to create a page to insert an entry into a database which
> hasMany children. All of these will be created at once (i.e. an
> "expense" item with zero or more "expenseDetail" children). Creating a
> single expense and expenseDetail is a piece of cake, but I'm not sure
> how to create multiple expenseDetails at once? Is there a method in
> htmlhelper for creating indexed inputs, or would I have to do it
> manually? Would these then be picked up automagically in the
> ExpenseController (e.g. $this->Expense->ExpenseDetail)?
>
> Thanks!


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