Monday, January 30, 2012

Help Understanding Fat Models

I see the oft-repeated phrase "Keep your controllers thin and models fat", but I'm having a problem wrapping my head around it. Most of the tutorials and examples I see have just about all of the code in the controllers, and the models have little more than associations.

So.. what exactly does a fat model look like? How do I know what to pull out of my controllers to move into models - everything seems to be working great the way it is. Do methods/actions/functions look and work the same in a model as they do in a controller?


Any advice, pointers, links are much appreciated!

  {c}

--
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: