Wednesday, October 27, 2010

Re: Fake Model / Table

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 <zijn.digi...@gmail.com> wrote:
> On Tue, Oct 26, 2010 at 6:16 PM, euromark <dereurom...@googlemail.com> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: