Category: CodeIgniter

  • Libraries

    The essential part of a CodeIgniter framework is its libraries. It provides a rich set of libraries, which indirectly increase the speed of developing an application. The system library is located at system/libraries. All we need to do is to load the library that we want to use. The library can be loaded as shown…

  • Working with Database

    Like any other framework, we need to interact with the database very often and CodeIgniter makes this job easy for us. It provides rich set of functionalities to interact with database. In this section, we will understand how the CRUD (Create, Read, Update, Delete) functions work with CodeIgniter. We will use stud table to select, update, delete,…

  • Configuration

    After setting up the site, the next thing that we should do is to configure the site. The application/config folder contains a group of files that set basic configuration of your site. Configuring Base URL The base URL of the site can be configured in application/config/config.php file. It is URL to your CodeIgniter root. Typically,…

  • Basic Concepts

    Controllers A controller is a simple class file. As the name suggests, it controls the whole application by URI. Creating a Controller First, go to application/controllers folder. You will find two files there, index.html and Welcome.php. These files come with the CodeIgniter. Keep these files as they are. Create a new file under the same path named “Test.php”. Write the…

  • MVC Framework

    CodeIgniter is based on the Model-View-Controller (MVC) development pattern. MVC is a software approach that separates application logic from presentation. In practice, it permits your web pages to contain minimal scripting since the presentation is separate from the PHP scripting.

  • Application Architecture

    The architecture of CodeIgniter application is shown below. Directory Structure The image given below shows the directory structure of the CodeIgniter. CodeIgniter directory structure is divided into 3 folders − Application As the name indicates the Application folder contains all the code of your application that you are building. This is the folder where you…

  • Installing

    It is very easy to install CodeIgniter. Just follow the steps given below − On visiting the URL, you will see the following screen −

  • Overview

    CodeIgniter is an application development framework, which can be used to develop websites, using PHP. It is an Open Source framework. It has a very rich set of functionality, which will increase the speed of website development work. If you know PHP well, then CodeIgniter will make your task easier. It has a very rich…