phpeveryday.com

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


Joomla MVC: How MVC Pattern Works in Joomla?

Tag: joomla, MVC, component, module, pattern   Category: PHP Framework
post: 11 Jan 2008 read: 3,718


Joomla MVC Step By Step Tutorial: We have learned file structure that used in implementing MVC pattern at previous post. Now, we will look how they will work. Which file that will be executed for first time? Then what next file? For more clearly, we can see at following diagram (the diagram especially for show all data):

how MVC pattern works in Joomla

Since Joomla first executes hello.php when the component runs, I place hello.php as first door. It accept HTTP request and continue it to controller. Controller handles the logic flow of the component. It do getView() and getModel() job. getView has a task for preparing display data and getModel has a task for request data. In this case, show all data.

From this, we know what task of each file that we create in next post.



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
mod_rewrite - Part 1: create your "fantasy" URL

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


619
posting