Monday, August 6, 2012

CodeIgniter of MVC

What is (MVC) Model View Controller?

MVC is software development design pattern and MVC is an approach to separating your applications into three segments: Model, View, and Controllers. MVC structures your application in this way in order to promote the reuse of program code.

The model represents any type of data that you application may use. Some example of data that your application might use would be: a database, RSS Feeds, API calls and any other action that involves retrieving, returning, updating and removing data.

Views are the information that is being presented on the screen to users through their web browsers. These are usually HTML files, sometimes containing PHP code that builds the template for the website.

Finally Controllers are the business logic of your application. They serve as an intermediary between Models and views. The Controller will respond to HTTP requests and generate web pages.

 

No comments:

Post a Comment