Base class structure for building a Yii Api