Oh, OK, that makes sense (I suspected that once I noticed that
textarea also didn't use an 'error' key). The API doesn't make this
clear: How do I draw a textarea using $form->input?

On Apr 18, 3:40 pm, nate <[EMAIL PROTECTED]> wrote:
> It's not an inconsistency.  FormHelper::input() is a *wrapper
> method*.  It generates an input field (which is automagically
> determined based on column type), a label, a wrapper div, and an error
> message, where applicable.  FormHelper::textarea() just renders a
> textarea.  In fact, if you call $form->input() on a text-type column,
> it calls $form->textarea().
>
> On Apr 18, 3:19 pm, 703designs <[EMAIL PROTECTED]> wrote:
>
> > I'm having trouble with one inconsistency I've found while building a
> > small app. $form->input accepts a 'label' key in the options array,
> > but $form->textarea doesn't. Why is this? Is there another key that
> > will work like input's "label"?
--~--~---------~--~----~------------~-------~--~----~
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