DataTables is a jQuery plugin for intelligent HTML tables. Next to adding dynamic elements to the table, it also has great supports for on-demand data fetching and server-side processing. The cakephp-datatables plugin makes it easy to use the functionality DataTables provides in your CakePHP 3 application. It consists of a helper to add DataTables to your view and a Component to transparently process AJAX requests made by DataTables.
- Versions 3.x are for users of CakePHP 3.6 and above
- Versions 2.x are available for older CakePHP installations, but will not receive new features
- Version 1.0 is a tag available for people who let their code rot. Consider upgrading by only changing a couple of lines!
- Branch
php5
is for people without PHP 7 and currently stuck at version 1.0 (pull requests welcome)
- PHP 7
- CakePHP 3.x
- DataTables 1.10.x
Please see the Documentation, esp. the Quick Start tutorial
This work is based on the code by Frank Heider.
The original code by fheider is vulnerable to SQL injection attacks, which was made apparent by a recent addition to the CakePHP documentation. The vulnerability is fixed by a breaking change in all branches in this repository. It affects the ordering and filtering functionality of DataTables in conjunction with server-side processing. If you are using a prior version of this plugin, you need to update it immediately and, if needed, change your code to allow ordering and filtering with server-side processing.