Presentation is part of the component, which is used to display data in a manner convenient to the user. For Web applications, the representation would be html page with the data. It retrieves data from the model and puts them in a pattern that appears to the user. View can not modify the data, it only displays them. Controller The controller is responsible for actions user.
In our case, the user action – a request for a page. The controller determines which request is made by the user and respond by calling the model to appropriately manipulate the data and send them into submission. He does not display data, but only runs in the model methods that modify the data and then puts them into a representation which displays them. Communication mvc Figure on the right illustrates the use of key components in Joomla. In addition to models, views and controller in the figure shows the entry point as a small cannikin and template. These five components will give you the opportunity to understand how to create mvc components in Joomla.
The first part guide focuses on the controller and view (using a template). The figure they are marked in blue. The second part adds a model, and the third part extends its functionality. It is marked in green the figure. Keep in mind that this scheme applies only to the user of the site, although the same scheme applies to the administrative part. On the administrative side of the site will be discussed, beginning with the fourth part of this leadership.