Just noticed the $showEmpty option doesn't seem to be in 1.2's generateList (model.php) - anyone know of an equivalent?
Zoltan On Jul 24, 6:09 pm, MonkeyGirl <[EMAIL PROTECTED]> wrote: > > function select($fieldName, $options = array(), $selected = null, > > $attributes = array(), $showEmpty = '') > > > Isn't that clear? :D > > Maybe I don't know PHP well enough, but it's not very clear to me... > Would setting $showEmpty to a non-false value do the same thing as > setting one of the $options array parts with a key of $empty? If so, > that's what I'm using to denote "this part of the form hasn't been > filled in," as a separate semantic meaning to "this part has been > filled in, and the user specifically says thatnoneof the available > options applies." > > So does CakePHP have a built-in way for me to make a distinction > between these two things, or should I continue with my own > idiosyncratic way of doing it? As I said before, I'm pretty confident > I can get the distinction to work the way I was going to go about it, > but if there's a generally agreed upon way of doing it, I'd rather do > it the same way as everyone else for the sake of easily maintainable > code rather than going off and doing my own thing. > > Thanks, > Zoe. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
