Often, when writing widgets or editing Yii code, it is unclear whether or not the code is following the MVC pattern.