Joomla MVC: Introduction using Model View Controller



Joomla MVC Step by Step Tutorial: May be we found some Joomla component was built in Model View Controller (MVC) pattern. Why they build using this pattern? Many programmers use MVC as a predictable way of controlling the logic flow of the software. We will recode our practice using this pattern. But, before do that, we must understand what is MVC.

Shortly, the Model-View-Controller (MVC) pattern organizes and separates software into three distinct roles:

  • The Model encapsulates your application data, application flow, and business logic.
  • The View extracts data from the Model and format it for presentation
  • The Controller direct application flow and receive input and translates it for the Model and View.

When we implement MVC, we face in more complex codes. The Model, View, and Controller are never captured in single classes, but are instead implemented as closely-related groups of objects, where each group performs one specific MVC task.



Series this article:
Joomla MVC: Introduction using Model View Controller
Joomla MVC: How to Implement MVC Pattern in Joomla?
Joomla MVC: How MVC Pattern Works in Joomla?
Joomla MVC: Updating hello.php As Component
Joomla MVC: Creating Controller Section
Joomla MVC: Creating Model that Show All Data
Joomla MVC: Creating View That Show All Data
Joomla MVC: Creating Default Template for View All
Joomla MVC: Creating Model that Show Individual Data
Joomla MVC: Creating View That Show a Data
Joomla MVC: Creating Default Template for View


Tag: joomla, MVC, component, module, pattern Category: PHP Framework Post : January 10th 2008 Read: 18,149 Bookmark and Share

blog comments powered by Disqus