Home Joomla 1.5 Tutorial guide component MVC helloworld 03
Tutorial guide component MVC helloworld 03 PDF Print E-mail
Written by Administrator   
Tuesday, 27 May 2008 12:20
Article Index
Tutorial guide component MVC helloworld 03
Component Structure
Inside Joomla! MVC Component
All Pages

Create MVC-model-view-controller component for joomla 1.5 - Hello World 03

Tutorial guide component MVC helloworld 03

The objective is to create a simple application(component) that allows to say HELLO in multiple languages.
This component includes a lots of new features and simply demonstrates joomla MVC from front-end to back-end side.

If you are not familiar with MVC in Joomla please get back to hello world 02 article. You can see the live demo helloworld 03 front end or

administrator helloworld 03 back end. It is very easy to follow the component source code since it includes developers notes and it is available at download section.


Front-end:

  1. add a new hello world link
  2. quick country navigation
  3. show a list of hello word links to users
  4. customized "tag" view of hello word links

Back-end:

  1. add, edit, delete, publish, unpublish hello world links
  2. edit, publish, unpublish countries


Parameters:

Description - Show component description
Helloworld Intro Text - description text
New Helloworld - Enable/disable adding a new hello world link in the front-end
Multicolor Links - customized "tag" view of hello word links. There are two options multicolor or single color view.
Maximum Records - Maximum hello word links per IP address


Controllers back-end

There are two pairs of controllers. One pair is for countries
country.php - show list of countries
country_detail.php - edit country record

and the second is for helloworld records.
helloworld.php - show list of helloworld links
helloworld_detail.php - edit helloworld record

For each controller there are relevant model and view (e.g. “country” controller has “country” model and “country” view). All views have the only one template.

Model-database-table:

  1. hw03_country - list of all countries

  2. hw03_helloworld - "hello" in many languages


Last Updated on Wednesday, 30 July 2008 11:27