Once in a while I run into a situation, where some sort of reporting is required for an application…(It happens.)
An example?.. We need to get a list of all active users in the DB.
CakePHP models, unlike super models should be fat. It’s a good practice to keep redundant code out of your controllers. Here’s a quick example on how you can keep your controllers skinny and models fat.