Similar to Yii.