Category: CodeIgniter

AJAX pagination makes it easier to display the large list of records in multiple pages without refreshing the whole page when navigating.

While navigating pages if you refreshed the webpage then it will load record from 1st instead of page position before the refresh.

E.g. If you are on 5 page then it will again start from 1 when webpage reload.

To retain the position, I am using COOKIE to store the page number and use it after page successfully load to fetch records in CodeIgniter.

Retain AJAX pagination position after Refresh in CodeIgniter

AJAX CodeIgniter DataBase PHP

CodeIgniter displays a simple 404 error page whenever the user navigates to a broken link.

You can easily customize it and make more user-friendly for the user.

In this tutorial, I show how you can create custom 404 error page in CodeIgniter.

Create custom 404 error page in CodeIgniter

CodeIgniter PHP

TinyMCE is a WYSIWYG editor which enables HTML textarea or other HTML elements to accept formatted input and media files.

It previews the content while adding and editing.

In this tutorial, I show how you can add TinyMCE editor to HTML control and read it on the form submit in CodeIgniter Project.

Add TinyMCE to HTML element in CodeIgniter

CodeIgniter JQuery PHP

CodeIgniter has upload library which makes easier to handle file uploading.

Sometimes need to allow multiple files upload to the web application. This can easily add by separately creating file element for selection.

But this can handle with single file element by adding multiple attribute.

Need to loop on selected files for upload.

In this tutorial, I show how you can upload multiple files in CodeIgniter.

How to upload Multiple Files and Images in CodeIgniter

CodeIgniter PHP

AJAX based pagination load content without reloading the whole webpage and improve the user experience.

CodeIgniter has the pagination library to add pagination.

From the controller need to handle the AJAX request which sends from the view.

In this tutorial, I show how you can create AJAX pagination in CodeIgniter.

How to Create AJAX Pagination in CodeIgniter

AJAX CodeIgniter DataBase How To JQuery PHP

Pagination gets complicated when to find specific groups of records when there is a large number of records are available.

By adding a search filter with pagination makes easier for the user to easily find records e.g. filter list by country, department, name etc.

It is easier to add pagination using pagination library in CodeIgniter.

In this tutorial, I am using the SESSION to store search value and filter the pagination list.

Pagination with search filter in CodeIgniter

CodeIgniter DataBase PHP

In CodeIgniter Model are the PHP classes where all database related manipulation is done e.g. fetching records, insert, update, and delete records.

Within this, all data processing logic is done.

All model files are managed in application/models directory and they are load and access by the controller.

How to create and load Model in CodeIgniter

CodeIgniter How To PHP