Hi all cake bakers,

I'm using the 1.2RC and I followed the field naming convention here to
get array of data for a field name:
http://book.cakephp.org/view/547/field-naming-convention

Here is my code to create input fields:
<?= $form->input('MyModel.myField.1');?>
<?= $form->input('MyModel.myField.2');?>

But when it displays, my label is 1 and 2 but not My Field. I have to
manually set the label like this:
<?= $form->input('MyModel.myField.1', array('label' => 'My Field 1'));?
>
<?= $form->input('MyModel.myField.2', array('label' => 'My Field 2);?>

Did I created the field wrong or do I just have to manually type in
the label? Also, in plain php, we can just use the two bracket at the
end [] and the posted data will automatically create the array for us,
can we do something like that with cake using the form helper?

Thanks all!
- Kien


--~--~---------~--~----~------------~-------~--~----~
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]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to