This is the Codeigniter subcategory, it contains info about CI.
We will be building a PHP Codeigniter blog application with CRUD functionality. In this video we will install Codeigniter, setup a Pages controller, add views and routing.
Table of Contents:
- What is CodeIgniter?
- Site of CodeIgniter
- What is CodeIgniter MVC?
- In CodeIgniter MVC have three basic classes:
- For Codeigniter MVC
- Other Articles
CodeIgniter is a PHP framework, it is good for a small team of programmers (1-2) and you can write very fast applications. Another popular framework is Laravel. There is a special way/pattern to write code the MVC. This article explains the implementation of MVC in CodeIgniter. CodeIgniter is used a lot in countries like India, Indonesia, and this area. In the western world is used for educational projects. The implementation of MVC in CodeIgniter is easy and good for a newbie to understand.
What is CodeIgniter?
It is a PHP Framework that people use for Educational Apps. A Framework has commands that are a summary of more commands in Vanilla PHP.
Site of CodeIgniter
What is CodeIgniter MVC?
In CodeIgniter MVC we have three basic classes:
a) Controller (who is doing the management)
b) View (who presents the data)
c) Model (who speaks with the database, in our case MySQL, and fetches the info).
How MVC works:
The browser speaks with the controller.
Then the Controller looks at the Cache if the info exists. If YES controller uses the View to present it ( HTML + CSS + Bootstrap +JS)
If info does not exist, then Controller speaks with Model, Model with Database and returns the info to Controller, the Controller uses the View to present the info to Browser and updates the cache.
In CodeIgniter, we also use Helpers, Libraries, and all the staff that this framework has. For example, we first must load the Database in order to use it with the specific command or by editing the autoload script.