What field type creates a checkbox?  I was looking for this earlier
and was unable to find it.

On May 8, 10:25 am, grigri <[EMAIL PROTECTED]> wrote:
> The form helper's `input()` and `inputs()` methods generate labels,
> the individual control methods (`text()`, `checkbox()`) do not. This
> is 100% by design.
>
> > So.. how do i manage to properly label the checkbox?
>
> echo $form->input('dbDBName',array( 'label' => _('DB Database
> Name', 'type' => 'checkbox')));
>
> > Btw.. its a tableless model, so no data connection.
>
> You can (and should) create a schema for the model. This will allow
> the form helper to automatically choose the correct field type.
--~--~---------~--~----~------------~-------~--~----~
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