This Yii Behavior is an easy, effective, and logical way to dynamically set classes on the body tag in your layouts.