Pagination Demos
A brief Explanation
This demo is designed for cake 1.1.
For some time, I've been tweaking pagination where used, making it specific to the need - the tweaks have been minimal. The goal of the code and demo presented here is to have a pagination solution able to cope with any situation in a generic way. The situations considered when writing the code were
What does it demonstrate?
- A standard paginated index (Normal)
- Various permutations of how to present pagination options. (All)
- Sorting data based on any field of a model or an (hasOne belongsTo) association
- Changing the default parameters at run time (Custom, No limits)
- Using elements
- Using the same view folder for more than one controller
- Using named/pretty parameters
- Using selectboxes to display pagination options
- Using ajax with pagination
- Search Results
- Keeping search criteria by 'pulling' form data with each pagination link
- Using Post Redirect Get to achieve the same result without the complexity
Note that if a parameter isn't necessary because it matches a default, it isn't included.










