Developing Joomla! 5 Extensions by Carlos M. Cámara Mora
Author:Carlos M. Cámara Mora
Language: eng
Format: epub
Publisher: Packt Publishing Limited
Published: 2023-11-20T00:00:00+00:00
Technical requirements
In this chapter, we will keep improving our Simple Project Manager extension so you will require the following:
Visual Studio Code (or the code editor of your preference)
The Joomla! site we installed in the previous chapters
Youâll find all the code used in this chapter on GitHub: https://github.com/PacktPublishing/Developing-Extensions-for-Joomla-5/tree/chapter07
Understanding the module file structure
Modules in Joomla! are inside the modules folder of our site. In any typical Joomla! installation, this folder is full of folders that belong to the modules. These folder names start with the prefix mod_ to emphasize they are a module. This is not a rule when naming our modules, but Joomla! will add the prefix to the folder name if not present.
Since Joomla! 4, the module architecture has been the same as the component architecture.
So, when calling a module, Joomla! will look for the provider.php file inside the service modules. In the provider.php file, we will register the services we need in our module.
After registering our services, Joomla! looks for our moduleâs Dispatcher.php file, which will be inside the src/Dispatcher/ folder of our module. We will need a folder structure as follows:
services: This folder contains the provider.php file. This file is like src/component/admin/services/provider.php, and itâs used to register our module into Joomla!. Itâs actually the first file that Joomla! will look for when executing our module.
src: This contains our module code, correctly organized in different folders. We may find here the Dispatcher folder or the Helper folder.
tmpl: This contains different layout files for our module. Itâs common to have at least one default.php file with our layout.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Content Management | Programming |
User Experience & Usability | User Generated Content |
Web Design | Web Marketing |
Web Services | Website Analytics |
Hello! Python by Anthony Briggs(9383)
The Mikado Method by Ola Ellnestam Daniel Brolund(9320)
Dependency Injection in .NET by Mark Seemann(8865)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7410)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7124)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(6255)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(5967)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5517)
Kotlin in Action by Dmitry Jemerov(4653)
Audition by Ryu Murakami(4105)
Hands-On Full-Stack Web Development with GraphQL and React by Sebastian Grebe(3912)
Functional Programming in JavaScript by Mantyla Dan(3726)
Svelte with Test-Driven Development by Daniel Irvine(3041)
Learning React: Functional Web Development with React and Redux by Banks Alex & Porcello Eve(2844)
Layered Design for Ruby on Rails Applications by Dementyev Vladimir;(2658)
Test-Driven Development with PHP 8 by Rainier Sarabia(2641)
WordPress Plugin Development Cookbook by Yannick Lefebvre(2625)
Architecting Modern Java EE Applications: Designing lightweight, business-oriented enterprise applications in the age of cloud, containers, and Java EE 8 by Daschner Sebastian(2564)
React Native - Building Mobile Apps with JavaScript by Novick Vladimir(2344)