ypnos-web/cakephp-datatables

jQuery DataTables for CakePHP 3

Installs: 13 866

Dependents: 0

Suggesters: 0

Security: 0

Stars: 28

Watchers: 9

Forks: 39

Open Issues: 20

Type:cakephp-plugin

v3.0 2018-05-16 15:24 UTC

This package is auto-updated.

Last update: 2022-01-09 11:33:34 UTC


README

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.

Versioning

  • 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)

Requirements

  • PHP 7
  • CakePHP 3.x
  • DataTables 1.10.x

Installation and Usage

Please see the Documentation, esp. the Quick Start tutorial

Credits

This work is based on the code by Frank Heider.

IMPORTANT SECURITY NOTICE for users prior to Oct 24, 2017

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.