Use Yii methods in example controller

Something similar to this (laravel code):

```
return \Response::json(array(
            'status' => $status->getStatus(),
            'details' => iterator_to_array($status->getModel())
        ));
```