-->



Friday, October 9, 2015

Codeigniter--introduction to MVC


Hi Friends!, today I'am going to take tutorial about Codeigniter. But, first-of-all what is Codeigniter?,Codeigniter is a Popular PHP Framework which is used to build both Mobile and Web Applications. One of the biggest advantages of the Codeigniter is “Code less and More Efficient”.So before going to start the tutorial, First we need to know about MVC. MVC means Model-View-Controller.


Model

Model stores the data that is retrieved according to the commands from the controller and displays in the view. i.e., model manages the performance and data of the application domain, responds to requests for information about its state (from the view), and responds to instructions to change state ( from the controller).

View

View represents and generates the visualization or output representation of the data based on changes in the model.

Controller

Controller can transmit commands to the model to update the model's state. Controllers can also send commands to its associated view to change the view's visualization of the model.


MVC Picture Representation


So, together Model, View and Controller makes the Codeigniter to visualize the user's output. That’s all about the basics of MVC. In the next tutorial we can learn how to install Codeigniter.

No comments:

Post a Comment