> Please don't do that directly. SQL (even in a limited form) sprinkled > throughout the app is never good. > > I do think that is a neat solution. However, the right way to implement > it would be to define a custom model method called 'findAllSliced()' or > something similar, so you can change the behavior in the future without > grepping and replacing sprinkles of code all over.
Good point. If this is to be used in a lot of places, then yes, it should be generalized (in some way). If it's only used once, it's not worth it from any point of view. I always apply the 3rd strike rule to messy hacks / exceptions, and so far it's never let me down. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
