in 1.2, it is required to be set in a string, or you could use the following validation rule:
"allowEmpty The 'allowEmpty' key should be assigned a boolean value. If ' allowEmpty' is false, data passed to the model's save() method must include the field and a non-empty data value for that field. This rule is only enforced when the field index is present in the supplied data array. The default value of 'allowEmpty' is false." On Feb 8, 2008 7:32 AM, MonkeyGirl <[EMAIL PROTECTED]> wrote: > > > also, in regards to the second error, make sure in your model->validate > > array, that you have apostrophes around the words 'VALID_NOT_EMPTY', > which > > should clear out that error. > > Will it? I thought VALID_NOT_EMPTY *was* a constant, not a literal > string. > > I've also heard on someone's blog that it's now depreciated, but with > no clue as to what by. I know there's a bunch of new validation types > such as credit card in the new system, but I can't seem to find "not > empty" anymore. Is this depreciated or not? > > Thanks, > Zoe. > > > -- In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS d- s+: a19 C++++ UL++ P L++ !E W++ N(-) o? K? w(+) O? M-- V? PS+ PE Y- PGP- t+ 5? X- R tv-- b++ Di D+ G+ e h! r y- ------END GEEK CODE BLOCK------ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
