# Overview

> Yii applications are organized according to the model-view-controller (MVC) architectural pattern.

Yii applications are organized according to the [model-view-controller (MVC)](https://wikipedia.org/wiki/Model-view-controller)
architectural pattern. [Models](/docs/guide/structure-models/index.md) represent data, business logic and rules; [views](/docs/guide/structure-views/index.md)
are output representation of models; and [controllers](/docs/guide/structure-controllers/index.md) take input and convert
it to commands for [models](/docs/guide/structure-models/index.md) and [views](/docs/guide/structure-views/index.md).

Besides MVC, Yii applications also have the following entities:

- [entry scripts](/docs/guide/structure-entry-scripts/index.md): they are PHP scripts that are directly accessible by end users.
  They are responsible for starting a request handling cycle.
- [applications](/docs/guide/structure-applications/index.md): they are globally accessible objects that manage application components
  and coordinate them to fulfill requests.
- [application components](/docs/guide/structure-application-components/index.md): they are objects registered with applications and
  provide various services for fulfilling requests.
- [modules](/docs/guide/structure-modules/index.md): they are self-contained packages that contain complete MVC by themselves.
  An application can be organized in terms of multiple modules.
- [filters](/docs/guide/structure-filters/index.md): they represent code that need to be invoked before and after the actual
  handling of each request by controllers.
- [widgets](/docs/guide/structure-widgets/index.md): they are objects that can be embedded in [views](/docs/guide/structure-views/index.md). They
  may contain controller logic and can be reused in different views.

The following diagram shows the static structure of an application:

![Static Structure of Application](/docs/guide/images/application-structure.png)