Google Custom Search Engine example in Codeigniter

In this tutorial I will show you how to integrate Google Custom Search Engine with Codeigniter. Prerequisites PHP Engine 5.4 or later Codeigniter 2.2 Apache http server 2.2 or later Knowledge of html, css, javascript, php Final Output Step 1. Create google account if you do not have already one or sign in to google cse(Custom Search Engine) using your…

Codeigniter Multiple Files Upload

I am going to show you how to upload multiple files using PHP based Codeigniter framework. 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, restriction on file types, restriction on file size, whether a…

Bookmark web page using Codeigniter and jQuery

Introduction This tutorial shows how to bookmark a current URL. We have already built-in functionality in most of the browsers and we can bookmark a URL there but it’s also like you have to go to the menu option. The below code do the same thing just in one click on the web page. User is given a link to…

Codeigniter XChart Example

Introduction We know that xchart basically displays different statistical data on different chart types such as column chart, bar chart, line chart, pie chart etc. You can have a look at the URL http://tenxer.github.io/xcharts/ for more information. You can integrate xchart with any server side tehnology but here I will show you how to integrate xchart with Codeigniter framework. This…

Display site maintenence message using Codeigniter

Introduction This example shows how we can display site maintenance message using Codeigniter 3 to the user. This tutorial will also teach you how to work with hooks in Codeigniter framework. We build the website and live our website but it does not mean that all worked have been done for the website and in future we will never update…

Backup Site and Database in Codeigniter

Introduction I will show you how to backup site or application code and database in PHP based Codeigniter framework. In the world of web it is important to take backup of our site and database frequently. You don’t know when you’d come across unexpected situation which causes your site stop working. Here I have developed an application in Codeigniter, which…

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…