# Overview

> Each time when a Yii application handles a request, it undergoes a similar workflow.

Each time when a Yii application handles a request, it undergoes a similar workflow.

1. A user makes a request to the [entry script](/docs/guide/structure-entry-scripts/index.md) `web/index.php`.
2. The entry script loads the application [configuration](/docs/guide/concept-configurations/index.md) and creates
   an [application](/docs/guide/structure-applications/index.md) instance to handle the request.
3. The application resolves the requested [route](/docs/guide/runtime-routing/index.md) with the help of
   the [request](/docs/guide/runtime-requests/index.md) application component.
4. The application creates a [controller](/docs/guide/structure-controllers/index.md) instance to handle the request.
5. The controller creates an [action](/docs/guide/structure-controllers/index.md) instance and performs the filters for the action.
6. If any [filter](/docs/guide/structure-filters/index.md) fails, the action is cancelled.
7. If all filters pass, the action is executed.
8. The action loads a data [model](/docs/guide/structure-models/index.md), possibly from a database.
9. The action renders a [view](/docs/guide/structure-views/index.md), providing it with the data model.
10. The rendered result is returned to the [response](/docs/guide/runtime-responses/index.md) application component.
11. The response component sends the rendered result to the user's browser.

The following diagram shows how an application handles a request.

![Request Lifecycle](/docs/guide/images/request-lifecycle.png)

In this section, we will describe in detail how some of these steps work.