From Joomla! Documentation
This article or section is in the process of an expansion or major restructuring. You are welcome to assist in its construction by editing it as well. If this article or section
- 1 Introduction
- 2 Model Classes
- 3 Events
The models encapsulate the data used by the component. In most cases this data will come from a database, either the Joomla database, or some external database, but it is also possible for the models to obtain data from other sources, such as via a web services API running on another server. The models is also responsible for updating the database where appropriate. The purpose of the models is to isolate the controller and view from the details of how data is obtained or amended.