Oh, I didn't know that.  Alright, thank you!

On Sep 27, 4:33 pm, Joshua McFarren <[EMAIL PROTECTED]> wrote:
> If you only need 0/1 then why not use tinyint(1) unsigned instead of
> enum? That way cake will automagically make you a checkbox in
> scaffolding and baked views.
>
> On Sep 27, 4:26 pm, robechar <[EMAIL PROTECTED]> wrote:
>
> > The best thing I have found is the getEnumValues function in
> > cakeforge.  I put it in my app_model.php file, but you could also put
> > it in individual models, if you don't have too many 
> > enums.http://cakeforge.org/snippet/detail.php?type=snippet&id=112
>
> > On Sep 27, 1:05 pm, jwerd <[EMAIL PROTECTED]> wrote:
>
> > > Hello fellow Bakers, just curious how you go about dealing with your
> > > enum's if you are using them in your project.  An example is I have a
> > > todo list system and I have an enum in my table  completed enum('0',
> > > '1') and I want to figure out how I can get this to my view and check
> > > the box if it's 1 or not check it if it's 0.  Just something simple
> > > like that.  Is there any function in cake like generatelist for
> > > enums?
>
> > > Thanks in advance :)


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