Sunday 1 November 1992

What is CodeIgniter in PHP (XAMPP)

  1. CodeIgniter is a PHP MVC framework used for developing web application.
  2. CodeIgniter has a rich libraries for multi-purpose like connecting to the database,sending emails, uploading files, managing sessions, etc.
  3. CodeIgniter is open source. 
CodeIgniter Feature
  1. Runs on PHP 4 
  2. Light Weight 
  3. Fast 
  4. Uses M-V-C 
  5. Clean URLs 
  6. Packs a Punch 
  7. Extensible 
  8. Friendly Community of Users 
  9. Thoroughly Documented

Why we should use it? 
  1. Code igniter is a lightweight web application framework written in PHP 
  2. That adopts the model-view- controller approach to development.
  3. Web Application frameworks provide basic building blocks needed by most application.
  4. Database connections.
  5. Business logic.
  6. Form handling.
  7. Feature Rich.
  8. Lightweight.
  9. Open Source.
  10. Easy to configure.
  11. Supports multiple database. 
CodeIgniter Application Architecture

  • As shown in the Flow chart, whenever a request comes to CodeIgniter, it will first go to index.php page.
  • In the second step, Routing decides whether to pass the request to step 3 for Caching or to pass the request to step 4 for Security check.
  • If the requested page is already in Caching, then Routing will sanction the request to step 3 and the response will go back to the user.
  • In case the request page does not exist in the Caching, then Routing, will sanction the requested page to step 4 for Security checks.
  • Before passing the request to Application Controller, the Security of the submitted data is checked. After the Security check is done, the Application Controller loads all the necessary Models, Libraries, Helpers, Plugins and Scripts and pass it onto View.
  • The View will provide the page with available data and pass that on for Caching, to process this page quickly for future requests.
CodeIgniter Installation
  1. Step 1:  Download the Codingniter: https://www.codeigniter.com/download
  2. Codeigniter version: CodeIgniter-3 (Current), CodeIgniter-4 (Future) and CodeIgniter 2 (Legacy). 
  3. Step 2: Unzip the folder
  4. Step 3:  Upload all the files and folders to your server.
  5. Step4: After following step 3, visit the URL of your server, e.g. http://localhost/your_folder_name


Share This
Previous Post
Next Post

0 Comments: