Rest API with YII