FormHelper::input() is a wrapper method that automatically generates
extra output, i.e. error messages, wrapper <div />'s and labels. If
you want just the form element and *not* the extra stuff, you're
better off using the specific method that you want, i.e. $form-
>text( ) or $form->select( ).
On Mar 27, 5:58 am, "djiize" <[EMAIL PROTECTED]> wrote:
> Hello
>
> Html helper is the old way, and Form helper the ne cutting-edge one
> (and I like it a lot ;))
>
> To get rid of div and label, you can write
> $this->input('tagname', array('div' => false, 'label' => false));
>
> If you plan to use Cake 1.2, I don't think it's a good idea to
> continue with html helper. Maybe it'll be remove in 2.0, but I prefer
> taking the new habit ASAP
>
> Adrian Maier a écrit :
>
> > Hello,
>
> > I am a little confused about about why both HtmlHelper and FormHelper
> > have an input() method.
>
> > It looks like the
>
> > I am reluctant to use the HtmlHelper because :
> > - i saw in the archives that the plan is to deprecate the common methods
> > in favour of FormHelper
> > - (if i remember correctly) i've encountered a difference in behaviour
> > between
> > HtmlHelper->select() and FormHelper->select() .
>
> > However, FormHelper->input() automatically creates a div around it and puts
> > the label automatically. It's not clear how to get rid of both the div and
> > the
> > label .
>
> > Should i use HtmlHelper->input() instead or should i alter the css so
> > that the div
> > looks smaller or invisible ?
>
> > --
> > Adrian Maier
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---