Scaffolds views also can be customized.
On Feb 16, 2008 1:18 PM, the_woodsman <[EMAIL PROTECTED]> wrote:
>
> I think the only way selects are autogenerated by forms is from
> foreign keys, and checkboxes are generated for 'booleans'.
>
> It would be nice if radios and checkboxes were autogenerated from
> enums and sets, but these aren't supported out the box.
>
> Have no fear though - you can pass different parameters to the form-
> >input method, or use form->radio etc, to specify the input type.
>
> (If you're still using scaffolding, look into bake to create real
> files for your views for you to customise).
>
>
> On Feb 16, 12:36 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> > What are all the different schema types (for use in the model)?
> >
> > I only know of string and text.
> >
> > What type do you use for radio or select?
> >
> > e.g.- model:
> >
> > var $_schema = array(
> > 'firstName' => array('type' => 'string', 'length' => 30),
> > 'lastName' => array('type' => 'string', 'length' =>
> > 30),
> > 'email' => array('type' => 'string',
> > 'length' => 30),
> > 'msg' => array('type' => 'text')
> > );
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---