Rewriting Merchant Empires on Yii