Developing a Module
In previous chapters, we developed a fully featured component that allows us to add and retrieve information from our database with ease.
With our component, we can show information in a page view, and we can even consume this data using a Web Service. But, what if we need to show selected data along with other component views on our site? For this, we need to develop a companion module for our component.
Joomla! modules are a simple way to show data in any position on your site. As they can be added to any available positions in the template and can also be loaded using shortcodes in your content, they are the most versatile option to show information.
In this chapter, we will learn how to develop a companion module for our component that will show the list of projects we are working on, and you will have a better understanding of the new Joomla! Dependency Injection pattern we started to learn about in Chapter 2. When we address the module file structure...