On this occasion we received a visit from two of our European customers, Wouter and Frank from Amsterdam. As usual, we started working on the requirements of the new project and then we gave way to some leisure time and enjoyed a traditional Argentinian barbecue.
This article will explain how to develop customized components for Joomla in the 1.0.x version, showing the files and basic steps, as well as some useful methods such as access to the database, paged results, etc. It is recommended to have knowledge of PHP and HTML to read this article.
Directory structure
Joomla has a directory structure divided into 2 big groups. Administrator, where are all the files needed for the backend to work and the various directories that are located in the root directory.
The directories of interest are the components, both within the administrator directory, as in the root directory, since here is where the files for each component are, which in turn are in sub-directories as follows, com_componentName, example com_users.
If we want to see the files corresponding to the users component, must look at
Another important is the includes directory, since within it we find files that have classes that are going to be used in the component, for example to connect the database (database.php), to manage user data, paging, etc (joomla.php).
The components are stored in the database, more precisely in the jos_components table.
Files that make up a component
A component to be installed must be compressed in a zip file, with the following format com_ComponentName.zip example com_users.zip.
This file must have at least 8 files that are going to be described in brief:
The following describes each file.
Last Update November 29, 2023
Welcome to the latest introduction to Joomla!, the content management platform (CMS). At Serfe, we take pride in presenting the latest innovations of Joomla! 5, the most advanced version to date, designed to take your web experiences to the next level.
Joomla! 5 is an open-source content management system (CMS) powered by PHP and backed by the GPL license. Developed to create dynamic websites, it uses a MySQL database to offer flexibility and performance.
Basic Implementation of a Web Service client with PHP
A web service is an application that exposes or publish its functionalities or methods through an interface. It works in client-server mode, other applications talk to the web service using messages in a standardized format. Essentially, the communication is the same as a web server returning requested data by a browser such as an HTML page, the only difference is that instead of serving up HTML in response to HTTP requests, it serves up SOAP (XML) responses to SOAP requests.
Four elements make a web service: