Tag: Codeigniter

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

If there is the registration form on the website then you need to make sure that the username or email must be unique.

The user will login with the selected username next time when it comes to the website.

You can either check it after submitting the form or while entering it.

In the demonstration, I am creating a simple registration form in CodeIgniter where check the entered username with Angular and insert the record if the username is available.

Live username availability check with AngularJS in CodeIgniter

AngularJS CodeIgniter DataBase PHP

AngularJS CodeIgniter How To PHP