You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-17
Original file line number
Diff line number
Diff line change
@@ -2,23 +2,25 @@
2
2
3
3
DataTables server-side for CodeIgniter, supported for both CodeIgniter 3 and CodeIgniter 4.
4
4
5
-
**Note:** This library only handle the server-side part, you still needs to configure the clientside like jQuery, DataTables library and including the styles. Don't worry, we already give the examples below.
5
+
**Note:** This library only handle the server-side part, you will still need to set up the client-side components, such as jQuery, the DataTables library, and the necessary styles. **Don't worry, we've included examples below to help you get started.**
6
6
7
7
## Requirements
8
8
9
-
If you are using CodeIgniter, let's go! You don't needs any extra requirements.
9
+
No additional requirements are needed if you are already using CodeIgniter. Simply integrate this library into your existing project.
10
10
11
11
## Installation
12
12
13
-
You just need to use composer and everything is done.
13
+
To install the library, use Composer. This command will handle the installation process for you:
14
14
15
15
```sh
16
16
composer require ngekoding/codeigniter-datatables
17
17
```
18
18
19
19
## Usage
20
20
21
-
Here is the basic example to use this library, you are freely make any changes for the client side, like defining searchable column, orderable column, etc...
21
+
Below is a basic example of how to use this library. Feel free to customize the client-side configuration, such as defining searchable columns, orderable columns, and other DataTables options.
22
+
23
+
The usage of this library is similar for both CodeIgniter 3 and CodeIgniter 4. **The primary difference is in how you create the query builder.** Below are examples for both versions.
22
24
23
25
### CodeIgniter 3 Example
24
26
@@ -27,16 +29,13 @@ Here is the basic example to use this library, you are freely make any changes f
27
29
28
30
// Here we will select all fields from posts table
29
31
// and make a join with categories table
30
-
// Please note: we don't need to call ->get() here
0 commit comments