Introduction This tutorial shows how to sort table data in ascending or descending order in Codeigniter. To sort a particular column data in HTML table you have to click on the column header. I have created href link on the HTML table’s column header to make it clickable for sorting either descending or ascending order….

Posted in Codeigniter PHP

Sort Table Data In Ascending Or Descending Order In Codeigniter 3

Introduction I am going to show you thumbnail creation example in Codeigniter. There is a file upload class in CodeIgniter, which permits you to upload the file or files and also you can create thumbnail for the uploaded file with a desired size. This class also permits you to set various preferences, such as, destination…

Posted in Codeigniter PHP

Thumbnail creation example in Codeigniter

File upload example in Codeigniter 2.1.4. There is file upload class, in codeigniter, which permits you to upload the file or files. This class also permits you to set various preferences such as destination where the file will be uploaded, restrition on file types, restriction on file size, whether a file name should be encrypted…

Posted in Codeigniter File Upload PHP

File upload example in Codeigniter 2.1.4

This is an example on HMVC Codeigniter 2. HMVC stands for Hierarchical Model View Controller. Modular Extensions make the Codeigniter PHP framework modular. Modules are groups of independent components, typically model, controller and view, arranged in an application modules sub-directory that can be dropped into other Codeigniter applications. This allows easy distribution of independent components…

Posted in Codeigniter PHP

Setup HMVC with Codeigniter 2.1.4

Table of Contents Introduction Prerequisites Project Directory Auto-load Configuration REST Controller Route Configuration Testing Custom Validation Home Page Validation Error Validation Success Source Code Introduction This tutorial shows how to work with custom validation in Codeigniter. You need many times that a field has to be validated against some type of values but built-in features…

Posted in Codeigniter

Custom Validation Example In Codeigniter 3

Introduction In this tutorial I am going to show you how to disable browser cache easily in PHP based web framework Codeigniter. It is a good idea to cache static data on browser but it may be a problem when browsers cache dynamic data. For example, when browsers cache session data. Though generally you destroy…

Posted in Codeigniter PHP

How to disable Browser Cache easily in CodeIgniter 3

This tutorial shows how to remove index.php from URL in Codeigniter. You may want to remove the index.php file so that clean URL looks good and it makes better readability. Also the clean URL is easy to remember. For removing index.php from the URL you need to have .htaccess file under the project’s root directory…

Posted in Codeigniter htaccess PHP

How to remove index.php from URL in Codeigniter