Hi,
I am invoking a web service and get data. The result has "TotalPages", "TotalResults" information.
Based on this, I need to generate a paging mechanism using cakephp.
Please share some code snippet or advise me on how to achieve this.
Hi,
I am invoking a web service and get data. The result has "TotalPages", "TotalResults" information.
Based on this, I need to generate a paging mechanism using cakephp.
Please share some code snippet or advise me on how to achieve this.
The Pagination Helper will make displaying the paginated data a lot easier for you. However, it operates on the assumption that you are using a Cake Model. Luckily, you can create a Datasource (the manual is empty, but the API documentation and searching Google will teach you more) and a Model to use your Datasource and you should be in business.
The Yahoo BOSS and RSS Feed Datasources should be useful examples.