Practices with YII framework