Butterfly portal port to yii