In today’s tutorial we will see how can set and get a config value in Codeigniter. Codeignter is a very flexible framework with a lot of options to build a complete website. Basically, the Config class provides a means to retrieve configuration preferences. We don’t use Config class directly in our application as we have…Continue Reading
Codeigniter
Ajax Infinite Scroll Pagination in Codeigniter

Today’s tutorial, we are going to learn ajax infinite scroll pagination in Codeigniter. These days many websites load more data while scrolling the page and it is achieving without loading the entire page again. As you know already, conventional pagination works when user clicks on the page number listed on the bottom or top of…Continue Reading
How to upload Image in Codeigniter- With Example
Since you work with content management systems, you might have encountered with image/file upload several times. This is a very essential feature as you want to upload user avatars, product images, etc. Today’s tutorial we illustrate how to upload an image in Codeigniter with the support of examples. To demonstrate this upload function, we will…Continue Reading
Use Mpdf in Codeigniter 3
Today’s post shows how to use the mPDF– pdf generation library- in Codeigniter. Since we use PDF docs in all walks of life, it is necessary to generate in all kinds of web apps. So we selected integrating mPDF to Codeigniter as today’s topic and will go through step by step.
Codeigniter Insert Data into Database
In this tutorial we will learn how to post data from a form and insert in to a database table in Codeigniter. Following steps will explain you briefly how to insert data in to database table using Codeigniter. Here we go with an example of Employee database. Create a form to fill in employee details,…Continue Reading
Create a simple contact form in Codeigniter

In this tutorial we are showing how to create a simple contact form in Codeigniter. Contact forms are very necessary in any website, so the visitors can communicate to the website admins. Mostly visitors will have a lot of queries of about how your business running or a question about packages that you provide. In…Continue Reading
Sending emails through Mailgun using Codeigniter
This tutorial provides step by step guide to send email using mailgun SMTP using Codeigniter. Mailgun is a powerful API that enables send,receive and track emails. Step #1 Let’s create a config.php file in the config/email.php and define $config array in it. You do not need to load this file manually, as the Codeigniter will…Continue Reading
Using Third-Party Libraries in Codeigniter
This tutorial demonstrates, how to use third party libraries in Codeigniter. Codeigniter is capable to make any kind of websites like blogging websites,Informational Websites,Ecommerce Websites or social media websites, with any size. While developing web applications we will be dealing third party libraries. We cannot expect all of your favorite libraries are loaded in package…Continue Reading
How to do Pagination in CodeIgniter

You will find pagination in most of the web application. If you search something in Google, you will see paginated results with pages at the bottom of results. Why pagination? While we working with thousands of records from a database, we cannot display all the thousands/millions in a single page. That would be a bad…Continue Reading
Best CodeIgniter Tutorials for Beginners
In this article, we are listing some of the Best CodeIgniter Tutorials for Beginners. CodeIgniter is a powerful PHP framework that based on MVC(Model–View–Controller) architecture. The MVC architecture separates an application into 3 modules 1) Model 2) View 3 ) Controller. CodeIgniter is one of the most popular frameworks in PHP. Apparently, a web developer…Continue Reading
CodeIgniter pagination url with get parameters
CodeIgniter pagination url with get parameters In pagination config: if (count($_GET) > 0) $config[‘suffix’] = ‘?’ . http_build_query($_GET, ”, “&”); Your current $_GET vars will be shown in pagination links. You can replace $_GET by another associative array. This won’t add a query string unless one already exists. Update: I just saw, if you go…Continue Reading
Removing index.php from URL in Codeigniter
Removing index.php from URL in Codeigniter it’s an easy task to do. Most of the guys don’t wanna see the index.php in the middle of an URL. Here is the way to remove the index.php from URL Step1 Create a .htacess file in the root folder and paste the below code Step 2 Go to…Continue Reading