Codeigniter

Page

What is MVC?

MVC framework is a framework written to split up the business logic, database access and presentation.

mvc

Model

The Model is responsible for managing the data. It stores, retrieves data from the database. Here, all the data manipulation has done. So it contains all the logic part for a specific application.

View

The View is responsible for displaying the data that are retrieved from the Model and display it in a specific format. It can be just a template for website where all the designing happened. It can be just a HTML page.

Controller

The controller is responsible for handling the model and view to work together. The controller receives a request from the client, invoke the model to perform the requested operations and send the data to the View. The view formats the data to be presented to the user, in a web application as an html output.

 

Leave a comment