Tutorial guide component MVC helloworld 03 |
|
|
|
Written by Administrator
|
Tuesday, 27 May 2008 12:20 |
Page 1 of 3 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:
- add a new hello world link
- quick country
navigation
- show a list of hello word links
to users
- customized "tag" view of
hello word links
Back-end:
- add, edit,
delete, publish, unpublish hello world links
- 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:
- hw03_country - list of
all countries
- hw03_helloworld - "hello" in many
languages
|
Last Updated on Wednesday, 30 July 2008 11:27 |