php order management with yii framework