On Tue, Jan 25, 2011 at 5:51 PM, euromark <[email protected]> wrote:
> actually it is no overhead at all - compared to boostrap where it
> would be loaded every time (even if the model is not needed at all).
> but even there it does not hurt.
> the main reason why this SHOULD be in the model (and as class
> constants) is that it belongs to it
> and you can address it with Model::CONSTANT in your code which
> improves readability (using integers directly is a bad coding habit).
>
> defined at the very bottom of a model this does not hurt - in my
> opinion
> and thats where I put them :)

I agree. And your solution is quite elegant.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to