Integrating into YII app