Component file architecture
We can create a Joomla! component using almost any folder architecture you can imagine. However, if we want to take advantage of Joomla! libraries, we need to follow some rules. In this section, we will create a file and folder structure to follow Joomla! standards and use it to our benefit.
When installing a component on your Joomla! site, Joomla! automatically moves all different parts of your component to the right location.
A basic component will have at least an admin
folder and a site
folder. These folders host the files for the backend and the frontend of our component, respectively. Let’s continue to work in our development folder and create two folders – admin
and site
:
- admin: This folder will contain all the files and folders that belong to the backend of our component. It will be responsible for component interaction in the Joomla! Administrator.
- site: This folder will contain all the files and folders that conform...