jippi/cakephp-crud — pull request #27 by jippi (2013-07-08 18:45:59+00:00)
Title: [RFC] Add Pagination listener

Allow for pagination information in API responses

The native CakePHP json / XML views doesn't load helpers or fire any before/after render events, so the Crud version of these views will do that, other than that, it's 100% compatible with everything normally found in bundled views from cakephp

I'll implement the logic for XmlView + tests if the RFC is sane :)

```json
{
"success":true,
"data":[
],
"pagination":{
"pageCount":13,
"current":1,
"count":25,
"prev":false,
"next":"http://local.example.com/content.json?limit=2&page=2"
}
}
```