phpeveryday.com

The best tutorial of php, php framework, php strategies, object oriented oriented,


Joomla MVC: Introduction using Model View Controller

Tag: joomla, MVC, component, module, pattern   Category: PHP Framework
post: 10 Jan 2008 read: 2,696


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

| Give Your Opinion | Recommend
Share and Bookmark to: These icons link to social bookmarking sites where readers can share and discover new web pages.
digg del.icio.us technorati Ma.gnolia BlinkList

Recommended articles by other readers:
Web Services: How PHP Kiss VB.NET? (Part 1)
Chart: How to Build Cool Animation Real Time Chart
Joomla: Fast Road to Understand Component Programming
Email: Send Attachement Mail
CAPTCHA - part 3 : "Are you human or ....?" (Build Your CAPTCHA)

What do You Think?
Your Name *:
Email *:
(Will not be published)
Website/URL:
Your Comment *:
* Required


615
posting