it is usually bad coding to use the "real" values in your code like "WHERE status = 4" because not even you can remember what it stands for but "WHERE status = Model::STATUS_PENDING" etc is pretty self explanatory and i guess with arrays you probably have to
On 27 Okt., 19:48, cricket <[email protected]> wrote: > On Tue, Oct 26, 2010 at 6:16 PM, euromark <[email protected]> wrote: > > try this one: > >www.dereuromark.de/2010/06/24/static-enums-or-semihardcoded-attributes/ > > Thanks for the tip. I usually define these as an array in the model in > question. This might be a better approach. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" 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
