Today Deal

MVC Pattern

CodeIgniter framework is based on MVC pattern. MVC is a software that gives you a separate logical view from the presentation view. Due to this, a web page contains minimal scripting.

  • Model - The Controller manages models. It represents your data structure. Model classes contain functions through which you can insert, retrieve or update information in your database.
  • View - View is the information that is presented in front of users. It can be a web page or parts the page like header and footer.
  • Controllers - Controller is the intermediary between models and view to process HTTP request and generates a web page. All the requests received by the controller are passed on to models and view to process the information.

No comments:

Post a Comment

Why configure the URL routes?

Changing the URL routes has some benefits like From SEO point of view, to make URL SEO friendly and get more user visits Hide some URL ...