Download the PHP package kusmantopratama/ci4datatables without Composer
On this page you can find all versions of the php package kusmantopratama/ci4datatables. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kusmantopratama/ci4datatables
More information about kusmantopratama/ci4datatables
Files in kusmantopratama/ci4datatables
Package ci4datatables
Short Description Simple Codeigniter 4 Library Serverside Datatables Inspired igniteddatatables and Laravel Yajra Datatables
License MIT
Homepage https://www.youtube.com/channel/UCayxI4iWN0iskWquK9qNqiw
Informations about the package ci4datatables
Ci4datatables
Server Side Datatables Library for CodeIgniter 4 Framework
Description
Library to make server side Datatables on CodeIgniter 4 to be more easy
if you want to see video how to implement this package, you can visit my video on https://youtu.be/Lc_xMWmprBQ
Requirements
- Codeigniter 4.*
- JQuery 3.*
- JQuery Datatables
Installation
Installation is best done via Composer, you may use the following command:
composer require kusmantopratama/Ci4datatables
This will add the latest release of Ci4datatables as a module to your project.
Manual Installation
Should you choose not to use Composer to install, you can download this repo, extract and rename this folder to Ci4datatables. Then enable it by editing app/Config/Autoload.php and adding the Kusmantopratama\Ci4datatables namespace to the $psr4 array. For example, if you copied it into app/Libraries:
Example:
This is an example code for using this library:
-
PHP:
- Javascript using Post Method
using Get Method
you can see in column there is dtindex where its column automatically generate by library for numbering of rows. where you use dtindex column you must set its column whit orderable: false searchable: false, same as method addColumn().
Documentation:
Now you can use with instantiate class with table as parameter
-
Select Table\ Or you can use Querybuilder for select table;
- Query Syntax referer form codeigniter query builder\
-
Select, where, join etc functionality\ for query functionality, this library use query builder style from codeigniter 4 it self. you can visit https://codeigniter.com/user_guide/database/query_builder.html for more information
- Add Column\ if you want to use Closure Style :
Or ignited datatables style
- Edit Column\ if you want to use Closure Style :
Or ignited datatables style
Author's Profile:
Github: [https://github.com/kusmantopratama] Facebook: [https://web.facebook.com/k.tamapratama/]
support Me on
[https://paypal.me/tama225?locale.x=en_US]