Joomla MVC: Updating hello.php As Component



Joomla MVC Step by Step Tutorial: Ok, in this post, we will write code. This practice still use posting about creating component. Make sure you have followed posting about Fast Road to Understand Component Programming. As I told in previous post, Joomla will execute hello.php for first time when we access com_hello. So, we must update hello.php.

Replace all code in hello.php (within components/com_hello) with following code:

hello.php for first door at joomla mvc pattern

In line 13, it will determine whether show all or individual display. If task have nothing or 'all' value, we will display all data. The other hand, if task have 'hello', we will get individual data.

Next Post, we will talk about controller.



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 Category: PHP Framework Post : January 12th 2008 Read: 9,379 Bookmark and Share

blog comments powered by Disqus