ColdBox pagination made easy!

With this module you can paginate any recordset. The module is primarly developed to work with qb but it can be used to paginate any query or recordset.

Installation

To install simply use CommandBox

box install cbox-paginator

Usage

Usage it's really simple:

	// handler Main.cfc
	query = wirebox.getInstance('[email protected]');

	q = query.from('users').paginate(5);

To loop over record:

	rc.users = q.toStruct().data;

To show pagination:

	rc.pag = q.render();

 

 
$ box install cbox-paginator
No collaborators yet.
  • Jul 05 2018 01:10 PM
  • Jul 08 2018 12:48 PM
  • 48
  • 0
  • 12