Hi

You can use $form->text("Dominio.dominio") to generate a text input.
http://api.cakephp.org/class_form_helper.html#2e026510fd6aa29a72207f1d35b47857
The API docs suggests to provide the Model name together with the
fieldname. This may help Cake to figure the difference between
"Dominio" and "dominio" (or "Dominio.dominio").
Then, I guess it's not very good practice to name a field the same as
a model, as it will bring you this kind of issue and moreover will
probably make your code confusing...

+++++++
Clément

On Thu, May 29, 2008 at 11:06 AM, Parro <[EMAIL PROTECTED]> wrote:
>
> Hello,
> As I say in the subject, I have a model called "Dominio" with a field
> called "dominio", whe I use
>
> <?php echo $form->input('dominio); ?>
>
> it output a select, and even if i tried to override the type with
>
> <?php echo $form->input('dominio',  array('type' => 'text')); ?>
>
> it still gives me a select.
>
> Is there another way to override the input type?
>
> Thank you
>
> >
>

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