FormHelper should not be overriding anything you set explicitly. If
you can reproduce this with a unit test, please submit a bug report at
https://trac.cakephp.org/
On Nov 9, 4:48 pm, Kimble <[EMAIL PROTECTED]> wrote:
> On Nov 9, 10:35 pm, Kimble <[EMAIL PROTECTED]> wrote:
>
> > echo $form->input("customer_id", array("label" => "Kundenummer:",
> > "type" => "text"));
>
> > I would like this to produce a text field, but cakephp creates a
> > select box filled with all the data from the customer table. Someone
> > knows how to avoid this?
>
> After reading the form helpers php code it turns out that if you've
> set ie. customers at the same time you're using form->input(customer_id)
> cakephp will use data from $customers to populate
>
> the select box. It's a shame that this isn't documented somewhere..
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---