7. Components Part I: Controllers and Models
Components are typically the largest and most complex extensions and require the most knowledge and perseverance to create. If you have gotten this far in the book, you are likely ready for the challenge.
This chapter begins the in-depth look at the model-view-controller (MVC) design pattern used by all core components in Joomla!. We do this by examining the back end of the Weblinks component.
We start with an overview of the component’s files and then look in detail at the different tasks that the component can do. Then we explore how these tasks are implemented in the controller and model classes. We also discuss the
JTable class and how it is used to work with the database.