Sort Table Data In Ascending Or Descending Order In Codeigniter 3

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. There are no. of client…

Thumbnail creation example in Codeigniter

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 where the file and thumbnail…

File upload example in Codeigniter 2.1.4

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 or not, maximum length of…

Setup HMVC with 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 (MVC) in a single directory…

Custom Validation Example In Codeigniter 3

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 do not provide all kind…

How to disable Browser Cache easily 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 session but still using browser’s…

How to remove index.php from URL in Codeigniter

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 and mod_rewrite enabled for your…

Infinite Dynamic Multi-Level Nested Category With PHP And MySQL

Introduction I am going to show you how to build infinite dynamic multi level nested category with PHP and MySQL server. Here I will show example of infinite level of categories and subcategories on the fly from a MySQL database. So I am going to give an example on infinite multi level nested category with PHP and MySQL. Related Posts:…

How to configure GeSHi(Generic Syntax Highlighter) in Joomla 3

This tutorial shows how to configure GeSHi in Joomla 3. GeSHi is known asĀ Generic Syntax Highlighter. We configure GeSHi to highlight the source code in tutorials in order to enhance the experience of user’s readability. Highlighting the source code in tutorials also enhance the beautification of the tutorials. First download and install the plugin from here. After installation the plugin…

Create An Effective Pagination In PHP And MySQL

This tutorial shows how to create effective pagination in PHP and MySQL. When there are lots of data need to be shown on a page then the data grows at the bottom of the page hence the scroll appears. Most of the times it becomes very irritating to go to the bottom so pagination comes to rescue. Using pagination the…