Author: Awais Farooq

  • 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…

  • Security Features

    Phalcon provides security features with the help of Security component, which helps in performing certain tasks like password hashing and Cross-Site Request Forgery (CSRF). Hashing Password Hashing can be defined as the process of converting a fixed length bit string into a specified length in such a way that it cannot be reversed. Any change in the input…

  • Object Document Mapper

    Before starting with the concepts of Object Relational Mapper (ORM) and Object Document Mapper (ODM), it is important to understand the difference between SQL and NoSQL databases. The following table highlights the differences between SQL and NoSQL − SQL NoSQL They are also termed as Relational Databases (RDBMS) They are called as non-relational or distributed database The…

  • Working with Forms

    Forms are used in all web applications to accept inputs from the user as request. The data is accepted as an input, then manipulated and saved in the database or any other operation is being performed. Phalcon includes a component named Phalcon\Forms which helps in the creation and maintenance of forms. Consider the example of Blog-tutorial, which…

  • Asset Management

    Assets are all about the additional components apart from the existing framework in Phalcon. Phalcon has an asset manager which helps to manage all the asset components like CSS or JS files. The common methods used are − Method Importance __construct(variable $options) Initializes the component Phalcon\Assets\Manager addCss(string $path, variable $local, variable $filter, variable $attributes) Adds…