Hello,

> echo $form->input('ChartsKpis.' . $kpi['Kpi']['id'] .
> 'kpi_colour_id');
>
> However the resulting input has the format:
>
> <input id="ChartsKpis2kpiColourId" type="text" value="" name="data
> [ChartsKpis][2kpi_colour_id]"/>
>
> It seems to have got the id correct; but the name attribute hasn't
> been created in the same way as the documentation states.
>
> So which is right, the documentation or the Cake generated code?

Not sure, but I know which is wrong ;-)

How about:
echo $form->input('ChartsKpis.' . $kpi['Kpi']['id'] . '.kpi_colour_id');


Regards,
Piotr

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to