phpeveryday.com

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


Joomla MVC: Creating View That Show a Data

Tag: joomla, MVC, component, view, pattern   Category: PHP Framework
post: 17 Jan 2008 read: 2,732


Joomla MVC Step By Step Tutorial: Ok, after make model for retrieve single data at here, we create view for display that data. As you know, we will need two parts for this job in Joomla: view and template. In this post, we talk about view.

File needed for view job at view.html.php within components/com_hello/views/hello. Open the file and enter following code:

code for view single data in joomla MVc


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

4 Responses to Joomla MVC: Creating View That Show a Data:

U have default.php instead of view.html.php in this page. Please change the page

Your tutorial is great.
I noticed there is a problem on this step : it is the same the next step (template).

I wrote this step, it is running :

Best regards, Christophe Hubert

The image is not for de view, is the template.

Great tutorial.
I think the code given on this page is not that of the view class. It is that of the template used by the view class.

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


619
posting