Изтегли пълният
PDF каталог сега
Поръчай луксозен
хартиен каталог

Composite components


Simple (single page) components create an area in a given single page. For example, the news display component creates a news display area in which it renders the news title and body, in a page where it is placed.

Composite (multiple page) components create site sections. For example, the catalog component creates the whole catalog section: catalog entries, catalog groups, product pages. In other words, a composite component form a set of pages. Composite components are built on the basis of simple components.


The foundation of composite components is the MVC (Model View Controller) design pattern. This concept breaks application data model, user interface and logic into three separate, individual parts in such a way that any change in one of the areas makes a minimum impact on others.

Model is the system core. The Model represents data and business logic, and can respond to requests of the View.

View is a set of simple components (in reality, things are more complicated but we shall omit details to make the first insight easier). The View displays data to a user, requests data from the Model, sends user actions to the Controller (usually via HTTP requests).

Controller is a composite component. The Controller selects an appropriate View based on user actions and the Model's response.

A typical flow of the MVC pattern is as follows.

When applied to composite components, the MVC algorithm works in the following way.

Page 1 - 1 от 2
Начало | Пред. | 1 2 | След. | Край

Брой показвания: 1002

Назад към списъка