CodeIgniter is based on the Model-View-Controller development pattern.
MVC is a software system approach that separates application logic from presentation.
In follow, it permits your web content to contain the smallest scripting since the presentation is break free the PHP scripting.
- The Model represents your data structures.
- Typically your model categories can contain functions that assist you to retrieve, insert, and update the info in your info.
- The read is that the info that's being conferred to a user.
A read can unremarkably be an internet page, but in CodeIgniter, a view can also be a page fragment like a header or footer.
It may also be AN RSS page or the other style of “page”.
- The Controller is an intermediator between the Model, the View, and the other resources required to method the hypertext transfer protocol request and generates an internet page.
CodeIgniter features a fairly loose approach to MVC since Models don't seem to be needed.
If you don’t would like the additional separation or realize that maintaining models need additional complexness than you wish, you can ignore them and build your application minimally using Controllers and Views.
CodeIgniter conjointly permits you to include your own existing scripts, or maybe develop core libraries for the system, facultative you to figure in a very manner that produces the foremost
sense to you.