Lessons: 18Length: 2.6 hours

Next lesson playing in 5 seconds

Cancel
  • Overview
  • Transcript

5.2 Thin Controllers Fat Models

It’s tempting to cram controllers full of business logic. Actually, some of the examples in Codeigniter’s user guide seem to encourage you to do so. Don’t budge! Keep your controllers lean, and allow your models to put on an extra few pounds. Nothing as gorgeous as fat models!