This article or section is in the process of an expansion or major restructuring. You are welcome to assist in its construction by editing it as well. If this article or section
This tutorial is part of the Developing a Model-View-Controller (MVC) Component for Joomla!1.6 tutorial. You are encouraged to read the precedent parts of the tutorial before reading this one.
In the Joomla!1.6 framework, third party components authors divide their code in three main parts:
In the core code of Joomla, there is a class able to manage controllers: JController. This class has to be extended to be used it in our component. In the file site/helloworld.php (entry point of our Hello World component), put these lines
<?php defined(_JEXEC) or die('Restricted access');
You can test this basic component by putting index.php?option=com_helloworld in your browser address (don't forget to prefix this address by your Joomla!1.6 installation path).
Create a compressed file of this directory or directly download the archive and install it using the extension manager of Joomla!1.6. You can test this basic component by putting index.php?option=com_helloworld or administrator/index.php?option=com_helloworld in your browser address. You can also noticed that the Hello World! component is visible in the administrator site of your Joomla!1.6 installation under the Components menu.