Note that we do not use a closing tag?>. We do this to us, there was no unwanted white space in the code. Such practices are by default used, starting with Joomla 1.5 for files containing only the php code. Creating Our controller component performs only one task – welcomes the world. Therefore, the controller is very simple.
We do not need any manipulation data. All you need is already in the downloaded submission. Most of the required functionality is built into the class JController, so all we have to do is call the method JController:: display (). Our controller code (site / controller.php) / ** * installed by default. When you create a menu item for your component, the manager menu allows the administrator to select a view that displays either to specific data, or their scheme. Usually, the representation refers to a specific set of data, such as a list of machines, a list of events, a particular machine, a particular event.
The scheme is a method by which organized representation. In our component is a single view and one schema (the default). Creating a presentation task view is simple: it receives the data and puts them into the template. Data is placed into a template used by JView:: assignRef. Our view is in the file: site / views / hello / view.html.php. displays the greeting he received from the presentation. The template file: site / views / hello / tmpl / default.php / / No direct access defined ('_JEXEC') or die ('Restricted access');?> Greeting;?> Creating a hello.xml is possible to install components in the manually copying the files via ftp and create a database table. However, it is easier to create a batch file that will allow Joomla to do everything for us. This batch file contains a variety of information: 1. Incyte understands that this is vital information. description of the component parts (eg, name), optional – description, information on rights and licenses; 2.