> > First off, I have a couple enums in a table in my app. Under Cake 1.1, > > the enums were turned into a dropdown and displayed properly. Using > > cake_1.2.0.5427alpha, I don't get the dropdowns. I haven't tried any > > Well, give some more details. Are you using scaffold? Have you updated > the views?
I found a snippet that seems to work: http://cakeforge.org/snippet/detail.php?type=snippet&id=112 I just needed to paste getEnumValues() into my app_model.php, add a call to it in add() and edit(): $this->set('statusArray', $this->Design->getEnumValues('status')); and then tweak my views: echo $form->input('status', array('options' => $statusArray)); And it works great. Thanks for the tip on observing the field, I'll do that next... Wayne --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
